Compiling on linux.
This commit is contained in:
@@ -185,7 +185,7 @@ int xe_socket_loop_poll(xe_socket_loop_t* loop,
|
||||
XEIGNORE(recv(loop->notify_rd_id, &dummy, 1, 0));
|
||||
}
|
||||
loop->events[1].revents = 0;
|
||||
loop->events[1].events = POLL_IN;
|
||||
loop->events[1].events = POLLIN;
|
||||
|
||||
// Check send/recv.
|
||||
loop->pending_recv = (loop->events[0].revents & POLLIN) != 0;
|
||||
|
||||
@@ -109,7 +109,11 @@ int xe_thread_start(xe_thread_ref thread) {
|
||||
|
||||
static void* xe_thread_callback_pthreads(void* param) {
|
||||
xe_thread_t* thread = reinterpret_cast<xe_thread_t*>(param);
|
||||
#if XE_LIKE(OSX)
|
||||
XEIGNORE(pthread_setname_np(thread->name));
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), thread->name);
|
||||
#endif // OSX
|
||||
thread->callback(thread->callback_param);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user