mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
FS-4753 --resolve this should properly detect it everywhere
This commit is contained in:
1 parent
4b6db1329c
commit
5f469ad2bd
11 files changed
+34
-9
No files matched your search
@@ -269,13 +269,10 @@ int su_pthreaded_port_start(su_port_create_f *create,
|
||||
pthread_mutex_lock(arg.mutex);
|
||||
if (pthread_create(&tid, &attr, su_pthread_port_clone_main, &arg) == 0) {
|
||||
|
||||
#if defined (WIN32)
|
||||
/* this needs to be revisited when pthread for Windows supports thread priority settings */
|
||||
#elif defined (__APPLE__)
|
||||
/* no such function on Apple */
|
||||
#else
|
||||
#ifdef HAVE_PTHREAD_SETSCHEDPRIO
|
||||
pthread_setschedprio(tid, 99);
|
||||
#endif
|
||||
|
||||
pthread_cond_wait(arg.cv, arg.mutex);
|
||||
thread_created = 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user