From 495330ce3cfb6b168d2fb9b56aa125bbc7ff6e7d Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 10 Jan 2006 10:03:41 +0000 Subject: *** empty log message *** --- src/thread.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/thread.cc') diff --git a/src/thread.cc b/src/thread.cc index 2791c53..147cf00 100644 --- a/src/thread.cc +++ b/src/thread.cc @@ -36,17 +36,21 @@ static void* thread_run(void *data) { } Thread::Thread() -{} +{ +} Thread::~Thread() -{} +{ +} void Thread::run() { - pthread_create (&tid, NULL, thread_run, this); + pthread_attr_init(&attr); + + pthread_create(&tid, &attr, thread_run, this); } void Thread::wait_stop() { - pthread_join (tid, NULL); + pthread_join(tid, NULL); } -- cgit v1.2.3