summaryrefslogtreecommitdiff
path: root/src/epoll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/epoll.cpp')
-rw-r--r--src/epoll.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/epoll.cpp b/src/epoll.cpp
index e1d3f8b..8ba2f17 100644
--- a/src/epoll.cpp
+++ b/src/epoll.cpp
@@ -45,7 +45,7 @@ xs::epoll_t::epoll_t (xs::ctx_t *ctx_, uint32_t tid_) :
xs::epoll_t::~epoll_t ()
{
// Wait till the worker thread exits.
- worker.stop ();
+ thread_stop (&worker);
close (epoll_fd);
for (retired_t::iterator it = retired.begin (); it != retired.end (); ++it)
@@ -121,7 +121,7 @@ void xs::epoll_t::reset_pollout (handle_t handle_)
void xs::epoll_t::xstart ()
{
- worker.start (worker_routine, this);
+ thread_start (&worker, worker_routine, this);
}
void xs::epoll_t::xstop ()