Compiling on linux.

This commit is contained in:
Ben Vanik
2013-02-10 12:21:56 -08:00
parent 3cae7ed714
commit bfda368ab5
10 changed files with 39 additions and 7 deletions

View File

@@ -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;

View File

@@ -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;
}