mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-29 20:25:40 +02:00
fix non existant pthread funcs
This commit is contained in:
parent
81cf5cdc63
commit
14a8a8e9ee
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) {
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
set_thread_priority(find_thread(NULL), priority);
|
set_thread_priority(find_thread(NULL), priority);
|
||||||
|
#elif defined(__EMSCRIPTEN__)
|
||||||
|
// TODO: set priority?
|
||||||
#else
|
#else
|
||||||
pthread_t this_thread = pthread_self();
|
pthread_t this_thread = pthread_self();
|
||||||
const auto scheduling_type = SCHED_OTHER;
|
const auto scheduling_type = SCHED_OTHER;
|
||||||
|
|
@ -127,6 +129,8 @@ void SetCurrentThreadName(const char* name) {
|
||||||
// See for reference
|
// See for reference
|
||||||
// https://gitlab.freedesktop.org/mesa/mesa/-/blame/main/src/util/u_thread.c?ref_type=heads#L75
|
// https://gitlab.freedesktop.org/mesa/mesa/-/blame/main/src/util/u_thread.c?ref_type=heads#L75
|
||||||
(void)name;
|
(void)name;
|
||||||
|
#elif defined(__EMSCRIPTEN__)
|
||||||
|
// TODO: set thread name?
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(), name);
|
pthread_setname_np(pthread_self(), name);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue