diff options
author | Vladislav Vaintroub <vvaintroub@pcbsd> | 2012-01-16 02:18:24 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@pcbsd> | 2012-01-16 02:18:24 +0100 |
commit | 1f8cbf168c2283d59bff0ea9f73b9f3d334dfe4f (patch) | |
tree | 9b254de46bfbe7384981bde30dcade1b3994418b /sql/threadpool_unix.cc | |
parent | d212991e892c366f6df96f8b52c8306ae329770f (diff) | |
download | mariadb-git-1f8cbf168c2283d59bff0ea9f73b9f3d334dfe4f.tar.gz |
Fix threadpool on BSD and Solaris
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r-- | sql/threadpool_unix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc index f66c862dd0f..7f7d52eef1c 100644 --- a/sql/threadpool_unix.cc +++ b/sql/threadpool_unix.cc @@ -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) { - 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) 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) @@ -1532,4 +1532,4 @@ int tp_get_idle_thread_count() sum+= (all_groups[i].thread_count - all_groups[i].active_thread_count); } return sum; -}
\ No newline at end of file +} |