From da8b8000bd2a84c04a3a9cd6ce57f9bc814595cf Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 14 Apr 2012 16:39:39 +0200 Subject: 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 --- src/devpoll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devpoll.cpp') diff --git a/src/devpoll.cpp b/src/devpoll.cpp index e9f172b..76943f0 100644 --- a/src/devpoll.cpp +++ b/src/devpoll.cpp @@ -47,7 +47,7 @@ xs::devpoll_t::devpoll_t (xs::ctx_t *ctx_, uint32_t tid_) : xs::devpoll_t::~devpoll_t () { - worker.stop (); + thread_stop (&worker); close (devpoll_fd); } @@ -138,7 +138,7 @@ void xs::devpoll_t::reset_pollout (handle_t handle_) void xs::devpoll_t::xstart () { - worker.start (worker_routine, this); + thread_start (&worker, worker_routine, this); } void xs::devpoll_t::xstop () -- cgit v1.2.3