>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

 
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to