Skip to content
Snippets Groups Projects
Commit 71e237a3 authored by Monty Brandenberg's avatar Monty Brandenberg
Browse files

MAINT-3703 Suspected thread race crasher in fmodex library

Two problems found in DLL involving threads.  First, DllMain
was reinitializing a critical section for all entry reasons
(process attach, detach and thread attach, detach).  Should
only be done on process attach.  Second, static container
object was being modified and accessed without serialization.
Added some double-check locking to the initialization path
to reduce the total number of serialization calls made while
making the code thread safe.
parent de8fea13
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment