mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 16:45:53 +00:00
use sched_yield on Solaris
This commit is contained in:
@@ -511,7 +511,7 @@ cork_subprocess_is_finished(struct cork_subprocess *self)
|
||||
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
#include <pthread.h>
|
||||
#define THREAD_YIELD pthread_yield_np
|
||||
#elif defined(__linux__) || defined(BSD)
|
||||
#elif defined(__linux__) || defined(BSD) || defined(__sun)
|
||||
#include <sched.h>
|
||||
#define THREAD_YIELD sched_yield
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user