From 1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Apr 2010 17:07:55 +0000 Subject: The Bu::Ito thread class has changed the rules on the run function. It no longer returns anything, that's fine, it's in a class, but it also is protected now. That doesn't really effect child classes much, they can make run public, but I reccomend protected to avoid confusion. --- src/tests/itoqueue2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/tests/itoqueue2.cpp') diff --git a/src/tests/itoqueue2.cpp b/src/tests/itoqueue2.cpp index d1f20a4..b11aa32 100644 --- a/src/tests/itoqueue2.cpp +++ b/src/tests/itoqueue2.cpp @@ -19,7 +19,7 @@ public: { } - void *run() + void run() { for( int i = 0; i < 10; i++ ) { @@ -35,8 +35,6 @@ public: delete pStr; } } - - return NULL; } private: @@ -54,7 +52,7 @@ public: { } - void *run() + void run() { for( int i = 0; i < 11; i++ ) { @@ -62,8 +60,6 @@ public: printf("[%d] write: %s\n", id, strbase ); q.enqueue( new std::string( strbase ) ); } - - return NULL; } private: -- cgit v1.2.3