Commit 1f8cbf16 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix threadpool on BSD and Solaris

parent d212991e
...@@ -275,7 +275,7 @@ int io_poll_start_read(int pollfd, int fd, void *data) ...@@ -275,7 +275,7 @@ int io_poll_start_read(int pollfd, int fd, void *data)
int io_poll_associate_fd(int pollfd, int fd, void *data) int io_poll_associate_fd(int pollfd, int fd, void *data)
{ {
return io_poll_start_read(poolfd,fd, data); return io_poll_start_read(pollfd,fd, data);
} }
...@@ -338,7 +338,7 @@ static int io_poll_associate_fd(int pollfd, int fd, void *data) ...@@ -338,7 +338,7 @@ static int io_poll_associate_fd(int pollfd, int fd, void *data)
int io_poll_disassociate_fd(int pollfd, int fd) int io_poll_disassociate_fd(int pollfd, int fd)
{ {
return 0; return port_dissociate(pollfd, PORT_SOURCE_FD, fd);
} }
int io_poll_wait(int pollfd, native_event *events, int maxevents, int timeout_ms) int io_poll_wait(int pollfd, native_event *events, int maxevents, int timeout_ms)
...@@ -1532,4 +1532,4 @@ int tp_get_idle_thread_count() ...@@ -1532,4 +1532,4 @@ int tp_get_idle_thread_count()
sum+= (all_groups[i].thread_count - all_groups[i].active_thread_count); sum+= (all_groups[i].thread_count - all_groups[i].active_thread_count);
} }
return sum; return sum;
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment