fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] parallel loading of soundfont samples


From: Ceresa Jean-Jacques
Subject: Re: [fluid-dev] parallel loading of soundfont samples
Date: Wed, 28 Oct 2020 22:15:27 +0100 (CET)

>Currently, there are two problems: 1. The samplecache is guarded by a mutex that prevents naïve parallelization. 2. If we relax that mutex we get a strange race condition,...

The whole fluid_samplecache_load() need to be atomic and isn't thread safe without the mutex

-get_samplecache_entry(), need the mutex

-fluid_list_prepend(), need the mutex

-entry->num_references++; need the mutex
...

jjc

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]