From: Christian P. <cp...@us...> - 2005-06-06 11:59:38
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23474/include/pclasses/System Modified Files: Thread.h Log Message: - Added Thread::id() and Thread::threadId() Index: Thread.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/Thread.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Thread.h 25 Apr 2005 10:51:14 -0000 1.6 +++ Thread.h 6 Jun 2005 11:59:25 -0000 1.7 @@ -52,6 +52,8 @@ //! Test if thread is detached bool detached() const throw(); + unsigned long id() const throw(LogicError); + static void yield() throw(); static void sleep(unsigned int ms) throw(); @@ -60,6 +62,8 @@ static void spawn(const Callback& cb, const CallbackArgs& args, Semaphore* sem = 0) throw(SystemError); + static unsigned long threadId() throw(); + protected: virtual long main() = 0; |