SCM Repository
Diff of /branches/pure-cfg/src/lib/parallel-target/main.c
Parent Directory
|
Revision Log
|
Patch
revision 1215, Sat May 14 05:54:07 2011 UTC | revision 1216, Sat May 14 06:04:13 2011 UTC | |
---|---|---|
# | Line 158 | Line 158 |
158 | } | } |
159 | } | } |
160 | // adjust the numActive count | // adjust the numActive count |
161 | #if defined(HAVE_BUILTIN_ATOMIC_OPS) | |
162 | __sync_fetch_and_sub(&wrld->numActive, numStabilized); | |
163 | #else | |
164 | pthread_mutex_lock (&wrld->lock); | pthread_mutex_lock (&wrld->lock); |
165 | wrld->numActive -= numStabilized; | wrld->numActive -= numStabilized; |
166 | pthread_mutex_unlock (&wrld->lock); | pthread_mutex_unlock (&wrld->lock); |
167 | #endif | |
168 | } | } |
169 | } // end while(true) | } // end while(true) |
170 |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |