aboutsummaryrefslogtreecommitdiff
path: root/src/tests/itoqueue2.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-04-27 17:07:55 +0000
committerMike Buland <eichlan@xagasoft.com>2010-04-27 17:07:55 +0000
commit1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c (patch)
tree3ea239424e33edfc8d9b80aa6b923d944cd0bfa1 /src/tests/itoqueue2.cpp
parent801e7de1f85656746d832508baf4583907826420 (diff)
downloadlibbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.gz
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.bz2
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.xz
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.zip
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.
Diffstat (limited to '')
-rw-r--r--src/tests/itoqueue2.cpp8
1 files changed, 2 insertions, 6 deletions
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:
19 { 19 {
20 } 20 }
21 21
22 void *run() 22 void run()
23 { 23 {
24 for( int i = 0; i < 10; i++ ) 24 for( int i = 0; i < 10; i++ )
25 { 25 {
@@ -35,8 +35,6 @@ public:
35 delete pStr; 35 delete pStr;
36 } 36 }
37 } 37 }
38
39 return NULL;
40 } 38 }
41 39
42private: 40private:
@@ -54,7 +52,7 @@ public:
54 { 52 {
55 } 53 }
56 54
57 void *run() 55 void run()
58 { 56 {
59 for( int i = 0; i < 11; i++ ) 57 for( int i = 0; i < 11; i++ )
60 { 58 {
@@ -62,8 +60,6 @@ public:
62 printf("[%d] write: %s\n", id, strbase ); 60 printf("[%d] write: %s\n", id, strbase );
63 q.enqueue( new std::string( strbase ) ); 61 q.enqueue( new std::string( strbase ) );
64 } 62 }
65
66 return NULL;
67 } 63 }
68 64
69private: 65private: