[complement-svn] SF.net SVN: complement: [1409] trunk/complement/explore/include/mt/xmt.h
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2006-11-27 08:03:42
|
Revision: 1409 http://svn.sourceforge.net/complement/?rev=1409&view=rev Author: complement Date: 2006-11-27 00:03:33 -0800 (Mon, 27 Nov 2006) Log Message: ----------- pass attributes to condition; fix condition's underlined mutex scope Modified Paths: -------------- trunk/complement/explore/include/mt/xmt.h Modified: trunk/complement/explore/include/mt/xmt.h =================================================================== --- trunk/complement/explore/include/mt/xmt.h 2006-11-24 18:53:01 UTC (rev 1408) +++ trunk/complement/explore/include/mt/xmt.h 2006-11-27 08:03:33 UTC (rev 1409) @@ -1,4 +1,4 @@ -// -*- C++ -*- Time-stamp: <06/10/24 09:24:01 ptr> +// -*- C++ -*- Time-stamp: <06/11/27 10:30:33 ptr> /* * Copyright (c) 1997-1999, 2002-2006 @@ -1047,7 +1047,7 @@ pthread_condattr_t attr; pthread_condattr_init( &attr ); pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_SHARED ); - pthread_cond_init( &_cond, 0 ); + pthread_cond_init( &_cond, &attr ); pthread_condattr_destroy( &attr ); } else { pthread_cond_init( &_cond, 0 ); @@ -1177,7 +1177,7 @@ return 0; #endif #if defined(_PTHREADS) || defined(__FIT_UITHREADS) - MT_REENTRANT( _lock, _x1 ); + __Locker<__Mutex<false,SCOPE> > lk( _lock ); _val = false; int ret; while ( !_val ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |