Remove mutex names, fixes #722
Named mutexes are used for inter-process synchronization, using them to synchronize threads of a single process is just begging for trouble when running multiple instances of the application.
This commit is contained in:
@@ -132,9 +132,9 @@ thread_destroy_event(event_t *arg)
|
||||
|
||||
|
||||
mutex_t *
|
||||
thread_create_mutex(wchar_t *name)
|
||||
thread_create_mutex(void)
|
||||
{
|
||||
return((mutex_t*)CreateMutex(NULL, FALSE, name));
|
||||
return((mutex_t*)CreateMutex(NULL, FALSE, NULL));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -962,7 +962,7 @@ ui_init(int nCmdShow)
|
||||
* Before we can create the Render window, we first have
|
||||
* to prepare some other things that it depends on.
|
||||
*/
|
||||
ghMutex = CreateMutex(NULL, FALSE, L"86Box.BlitMutex");
|
||||
ghMutex = CreateMutex(NULL, FALSE, NULL);
|
||||
|
||||
/* Create the Machine Rendering window. */
|
||||
hwndRender = CreateWindow(L"STATIC", NULL, WS_CHILD|SS_BITMAP,
|
||||
|
||||
Reference in New Issue
Block a user