[Cppunit-cvs] cppunit2/include/cpptl thread.h,1.2,1.3
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-03-07 08:46:49
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27927/include/cpptl Modified Files: thread.h Log Message: * removed thread creation code. It is not required for core CppUnit. * exposed only processThreadExitHandlers(), other at exit handlers are implementation details. * modified RawThreadStorage::onThreadExit so that it may be called multiple time in the same thread without advert effects. Index: thread.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/thread.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** thread.h 6 Mar 2005 20:12:31 -0000 1.2 --- thread.h 7 Mar 2005 08:46:38 -0000 1.3 *************** *** 10,18 **** namespace CppTL { - void CPPTL_API addThreadExitHandler( const Functor0 &handler, - const void *tag = 0 ); - - void CPPTL_API removeThreadExitHandler( const void *tag ); - void CPPTL_API processThreadExitHandlers(); --- 10,13 ---- *************** *** 158,199 **** }; - - class CPPTL_API Thread - { - public: - typedef unsigned long ThreadIdType; - - // Thread( Functor0 threadFunction ); - - // void join(); - - static ThreadIdType currentId(); - - // static void sleep( unsigned long durationInMillisecond ); - - private: - void *data_; - }; - # endif // # ifndef CPPTL_THREAD_SAFE - - // ////////////////////////////////////////////////////////////////// - // ////////////////////////////////////////////////////////////////// - // Implementation of thread API common to all thread-safety mode - // ////////////////////////////////////////////////////////////////// - // ////////////////////////////////////////////////////////////////// - - /* - - class Thread; - typedef CppTL::SharedPtr<Thread> ThreadPtr; - - inline ThreadPtr createThread( Functor0 threadFunction ) - { - return ThreadPtr( new Thread( threadFunction ) ); - } - */ - } // namespace CppTL --- 153,158 ---- |