[complement-svn] SF.net SVN: complement: [1854] trunk/complement/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2008-04-23 19:23:36
|
Revision: 1854 http://complement.svn.sourceforge.net/complement/?rev=1854&view=rev Author: complement Date: 2008-04-23 12:22:40 -0700 (Wed, 23 Apr 2008) Log Message: ----------- remove STLport-specific macro STATIC_CAST; include sys/time.h required for gettimeofday; bump libxmt revision to 2.0.2 Modified Paths: -------------- trunk/complement/explore/include/mt/mutex trunk/complement/explore/lib/mt/ChangeLog trunk/complement/explore/lib/mt/Makefile.inc trunk/complement/explore/lib/mt/date_time.cc Modified: trunk/complement/explore/include/mt/mutex =================================================================== --- trunk/complement/explore/include/mt/mutex 2008-04-23 09:22:13 UTC (rev 1853) +++ trunk/complement/explore/include/mt/mutex 2008-04-23 19:22:40 UTC (rev 1854) @@ -379,7 +379,7 @@ { if ( --_count == 0 ) { # ifdef __FIT_PTHREADS - _id = __STATIC_CAST(pthread_t,-1); + _id = static_cast<pthread_t>(-1); pthread_spin_unlock( &this->_M_lock ); # endif } Modified: trunk/complement/explore/lib/mt/ChangeLog =================================================================== --- trunk/complement/explore/lib/mt/ChangeLog 2008-04-23 09:22:13 UTC (rev 1853) +++ trunk/complement/explore/lib/mt/ChangeLog 2008-04-23 19:22:40 UTC (rev 1854) @@ -1,5 +1,12 @@ 2008-04-23 Petr Ovtchenkov <pt...@is...> + * mutex: remove STLport-specific macro STATIC_CAST; + + * date_time.cc: include sys/time.h required for gettimeofday; + patch #1938561; + + * libxmt: bump revision to 2.0.2; + * thread: fix access to thread's _id in case of detached thread; really take thread's id into fake variable and keep _id as bad_thread_id. Modified: trunk/complement/explore/lib/mt/Makefile.inc =================================================================== --- trunk/complement/explore/lib/mt/Makefile.inc 2008-04-23 09:22:13 UTC (rev 1853) +++ trunk/complement/explore/lib/mt/Makefile.inc 2008-04-23 19:22:40 UTC (rev 1854) @@ -1,9 +1,9 @@ -# -*- Makefile -*- Time-stamp: <07/11/21 11:35:57 ptr> +# -*- Makefile -*- Time-stamp: <08/04/23 23:15:02 ptr> LIBNAME = xmt MAJOR = 2 MINOR = 0 -PATCH = 1 +PATCH = 2 SRC_CC = xmt.cc thr_mgr.cc time.cc uid.cc shm.cc callstack.cc system_error.cc thread.cc \ date_time.cc SRC_C = fl.c Modified: trunk/complement/explore/lib/mt/date_time.cc =================================================================== --- trunk/complement/explore/lib/mt/date_time.cc 2008-04-23 09:22:13 UTC (rev 1853) +++ trunk/complement/explore/lib/mt/date_time.cc 2008-04-23 19:22:40 UTC (rev 1854) @@ -14,6 +14,7 @@ #include <mt/date_time> #include <ctime> +#include <sys/time.h> namespace std { @@ -81,7 +82,7 @@ { #if defined(__linux) || defined(__FreeBSD__) || defined(__OpenBSD__) timeval tv; - gettimeofday( &tv, 0 ); + ::gettimeofday( &tv, 0 ); return system_time( tv.tv_sec * nanoseconds::ticks_per_second + tv.tv_usec * 1000LL, system_time::_adopt_t() ); #elif defined( WIN32 ) union { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |