diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-03-15 16:11:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-03-15 16:11:19 +0000 |
commit | 85315f2cc85a0c44055cd94c1b7de8cfe11b46e1 (patch) | |
tree | 8f6ffe7e908866a227cb74deb906d5a0ea1de42d /src/ito.cpp | |
parent | 14a460c60b162aefaf1798c71ac790ad574e739f (diff) | |
download | libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.gz libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.bz2 libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.tar.xz libbu++-85315f2cc85a0c44055cd94c1b7de8cfe11b46e1.zip |
Ito is updated and is more posix compliant.
Diffstat (limited to 'src/ito.cpp')
-rw-r--r-- | src/ito.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ito.cpp b/src/ito.cpp index c922fd0..dba1a87 100644 --- a/src/ito.cpp +++ b/src/ito.cpp | |||
@@ -25,14 +25,16 @@ bool Bu::Ito::start() | |||
25 | 25 | ||
26 | bool Bu::Ito::stop() | 26 | bool Bu::Ito::stop() |
27 | { | 27 | { |
28 | pthread_exit( &ptHandle ); | 28 | pthread_cancel( ptHandle ); |
29 | 29 | ||
30 | return true; | 30 | return true; |
31 | } | 31 | } |
32 | 32 | ||
33 | void *Bu::Ito::threadRunner( void *pThread ) | 33 | void *Bu::Ito::threadRunner( void *pThread ) |
34 | { | 34 | { |
35 | return ((Ito *)pThread)->run(); | 35 | void *pRet = ((Ito *)pThread)->run(); |
36 | pthread_exit( pRet ); | ||
37 | return pRet; | ||
36 | } | 38 | } |
37 | 39 | ||
38 | bool Bu::Ito::join() | 40 | bool Bu::Ito::join() |