-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic measurement thread issue #56
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
InitTables
method of Dosbox to initialize global data has a defect when using the emulator on multiple threads.Description of the problem:
Init()
each around the same timeInitTables()
, has set doneTables = trueInitTables()
skips because ofdoneTables
flagAlso, there must be a synchronization to ensure correct sequencing of read and write.
Mutex will be fine.
(EDIT I don't use several threads in the worker for measuring so it's not affected; but needed for libADLMIDI's genadldata and I'll copy the changes here)
The text was updated successfully, but these errors were encountered: