[Assorted-commits] SF.net SVN: assorted: [623] cpp-commons/trunk/src/commons/pthread/barrier.h
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-03-13 15:53:11
|
Revision: 623 http://assorted.svn.sourceforge.net/assorted/?rev=623&view=rev Author: yangzhang Date: 2008-03-13 08:53:06 -0700 (Thu, 13 Mar 2008) Log Message: ----------- added option for preserving pthread barrier Modified Paths: -------------- cpp-commons/trunk/src/commons/pthread/barrier.h Modified: cpp-commons/trunk/src/commons/pthread/barrier.h =================================================================== --- cpp-commons/trunk/src/commons/pthread/barrier.h 2008-03-12 20:44:56 UTC (rev 622) +++ cpp-commons/trunk/src/commons/pthread/barrier.h 2008-03-13 15:53:06 UTC (rev 623) @@ -4,7 +4,14 @@ #include <commons/check.h> #include <pthread.h> -#define pthread_barrier_t my_barrier_t +#define pthread_barrier_t my_barrier_t + +#ifdef PRESERVE_PTHREAD_BARRIER // don't define pthread_barrier_*() +#define pthread_barrier_init my_barrier_init +#define pthread_barrier_wait my_barrier_wait +#define pthread_barrier_destroy my_barrier_destroy +#endif + struct my_barrier_t { pthread_mutex_t lock; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |