Expose thread id

This commit is contained in:
Romain Vimont
2021-01-31 18:54:52 +01:00
parent f6320c7e31
commit d2689fc168
2 changed files with 9 additions and 0 deletions

View File

@@ -64,6 +64,11 @@ sc_mutex_unlock(sc_mutex *mutex) {
#endif
}
sc_thread_id
sc_thread_get_id(void) {
return SDL_ThreadID();
}
bool
sc_cond_init(sc_cond *cond) {
SDL_cond *sdl_cond = SDL_CreateCond();