View Issue Details

IDProjectCategoryView StatusLast Update
0001264OpenMPT[All Projects] Generalpublic2019-09-24 10:43
ReporterSaga Musix Assigned To 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001264: Turn CriticalSection into shared mutex

We should consider turning the CriticalSection lock used to serialize access to CSoundFile from different threads into a shared_mutex. Right now the differences are negligible, but in the future there are several ways we can take advantage of this feature:

  • Scripting API: Script access to CSoundFile doesn't have to block audio thread if it's just reading
  • Autosave: Can safely run in another thread without blocking GUI and audio thread, but would still block edits made at the same time, obviously.

Read access to const CSoundFile would go through shared_lock, write access to CSoundFile would go through unique_lock.

TagsNo tags attached.
Has the bug occurred in previous versions?
Tested code revision (in case you know it)


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-09-22 18:07 Saga Musix New Issue