mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-24 08:58:08 +00:00
Initialize the thread list mutex
This commit is contained in:
committed by
Michelle Bergeron
parent
d5037dff82
commit
cdf07e6905
@@ -268,3 +268,18 @@ int PltWaitForEvent(PLT_EVENT *event) {
|
||||
return PLT_WAIT_SUCCESS;
|
||||
#endif
|
||||
}
|
||||
|
||||
int initializePlatformThreads(void) {
|
||||
#if defined(LC_WINDOWS) || defined(LC_WINDOWS_PHONE)
|
||||
return PltCreateMutex(&thread_list_lock);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void cleanupPlatformThreads(void) {
|
||||
#if defined(LC_WINDOWS) || defined(LC_WINDOWS_PHONE)
|
||||
PltDeleteMutex(&thread_list_lock);
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user