[Cppunit-cvs] cppunit2/src/cpptl thread.cpp,1.1,1.2
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-03-06 21:21:20
|
Update of /cvsroot/cppunit/cppunit2/src/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23201/src/cpptl Modified Files: thread.cpp Log Message: * fixed compilation issues in pthread implementation. Index: thread.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpptl/thread.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** thread.cpp 6 Mar 2005 18:46:49 -0000 1.1 --- thread.cpp 6 Mar 2005 21:21:09 -0000 1.2 *************** *** 212,216 **** { // initialization error } ! data_ = pthread_mutex_t; } --- 212,216 ---- { // initialization error } ! data_ = mutex; } *************** *** 255,259 **** : deallocator_( deallocator ) { ! if ( pthread_key_create( &key, 0 ) != 0 ) { // error: Can't throw exception => during static initialization } --- 255,259 ---- : deallocator_( deallocator ) { ! if ( pthread_key_create( &key_, 0 ) != 0 ) { // error: Can't throw exception => during static initialization } *************** *** 293,297 **** { // @todo assert if NULL ! return pthread_getspecific( &(storage->key_) ); } --- 293,297 ---- { // @todo assert if NULL ! return pthread_getspecific( storage->key_ ); } *************** *** 299,303 **** void *value ) { ! if ( pthread_setspecific( &(storage->key_), value ) != 0 ) { // @todo handle failure } --- 299,303 ---- void *value ) { ! if ( pthread_setspecific( storage->key_, value ) != 0 ) { // @todo handle failure } |