summaryrefslogtreecommitdiff
path: root/src/kqueue.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-14 16:39:39 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-15 06:57:37 +0200
commitda8b8000bd2a84c04a3a9cd6ce57f9bc814595cf (patch)
treec35be3404a8133ba5c4ef2a203bb7fa6fc108e22 /src/kqueue.cpp
parente86827511b35231679085dc236e9744184ed4609 (diff)
thread_t rewritten in C style
thread_t is one of the classes where C++ syntax creates more problems then it solves. This patch converts it into simple C-style pseudo-class. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/kqueue.cpp')
-rw-r--r--src/kqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kqueue.cpp b/src/kqueue.cpp
index d680915..c3ef5b5 100644
--- a/src/kqueue.cpp
+++ b/src/kqueue.cpp
@@ -55,7 +55,7 @@ xs::kqueue_t::kqueue_t (xs::ctx_t *ctx_, uint32_t tid_) :
xs::kqueue_t::~kqueue_t ()
{
- worker.stop ();
+ thread_stop (&worker);
close (kqueue_fd);
}
@@ -144,7 +144,7 @@ void xs::kqueue_t::reset_pollout (handle_t handle_)
void xs::kqueue_t::xstart ()
{
- worker.start (worker_routine, this);
+ thread_start (&worker, worker_routine, this);
}
void xs::kqueue_t::xstop ()