Initialize the thread list mutex

This commit is contained in:
Cameron Gutman
2014-04-06 20:33:48 -04:00
committed by Michelle Bergeron
parent d5037dff82
commit cdf07e6905
4 changed files with 26 additions and 0 deletions

View File

@@ -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
}