Changeset 6456 for branches/newapi
- Timestamp:
- 07/20/08 22:25:21 (4 months ago)
- Location:
- branches/newapi/licq
- Files:
-
- 5 modified
-
licq/interface/logsink.h (modified) (2 diffs)
-
licq/thread/thread.h (modified) (4 diffs)
-
src/thread/test/threadspecifictest.cpp (modified) (1 diff)
-
src/thread/test/threadtest.cpp (modified) (2 diffs)
-
src/thread/thread.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newapi/licq/licq/interface/logsink.h
r5912 r6456 26 26 #include <iosfwd> 27 27 #include <string> 28 #include <time.h> 28 29 #include <vector> 29 30 … … 41 42 struct Time 42 43 { 43 unsigned int sec;44 time_t sec; 44 45 unsigned int msec; 45 46 } time; -
branches/newapi/licq/licq/thread/thread.h
r5925 r6456 81 81 * @param status The thread's exit status. 82 82 */ 83 static void exit( intstatus) LICQ_NO_RETURN;83 static void exit(long status) LICQ_NO_RETURN; 84 84 }; 85 85 … … 96 96 * @see exit 97 97 */ 98 virtual intrun() = 0;98 virtual long run() = 0; 99 99 100 100 /** … … 104 104 * @see run 105 105 */ 106 void exit( intstatus) LICQ_NO_RETURN;106 void exit(long status) LICQ_NO_RETURN; 107 107 108 108 /** … … 182 182 * or Thread::StateCanceled. 183 183 */ 184 intjoin();184 long join(); 185 185 186 186 /** -
branches/newapi/licq/src/thread/test/threadspecifictest.cpp
r5895 r6456 67 67 68 68 protected: 69 intrun()69 long run() 70 70 { 71 71 myTls->setData(new Counter()); -
branches/newapi/licq/src/thread/test/threadtest.cpp
r5312 r6456 25 25 { 26 26 public: 27 intrun()27 long run() 28 28 { 29 intstatus = myInt;29 long status = myInt; 30 30 myInt += 12; 31 31 if (status > 20) … … 35 35 } 36 36 37 intmyInt;37 long myInt; 38 38 }; 39 39 -
branches/newapi/licq/src/thread/thread.cpp
r5925 r6456 32 32 #include <signal.h> 33 33 34 void Licq::Thread::Current::exit( intstatus)34 void Licq::Thread::Current::exit(long status) 35 35 { 36 36 ::pthread_exit(reinterpret_cast<void*>(status)); 37 37 } 38 38 39 void Licq::Thread::Entry::exit( intstatus)39 void Licq::Thread::Entry::exit(long status) 40 40 { 41 41 Licq::Thread::Current::exit(status); … … 144 144 145 145 Licq::Thread::Entry* entry = static_cast<Licq::Thread::Entry*>(arg); 146 intret = -1;146 long ret = -1; 147 147 try 148 148 { … … 175 175 } 176 176 177 intjoin()177 long join() 178 178 { 179 179 assert(myState == StateRunning); … … 198 198 { 199 199 myState = StateJoined; 200 return reinterpret_cast< int>(ret);200 return reinterpret_cast<long>(ret); 201 201 } 202 202 } … … 277 277 } 278 278 279 intLicq::Thread::join()279 long Licq::Thread::join() 280 280 { 281 281 return myPrivate->join();
