Home | History | Annotate | Download | only in helgrind

Lines Matching full:barrier

2975 static Bar* map_barrier_to_Bar_lookup_or_alloc ( void* barrier ) {
2978 if (VG_(lookupFM)( map_barrier_to_Bar, &key, &val, (UWord)barrier )) {
2979 tl_assert(key == (UWord)barrier);
2983 VG_(addToFM)( map_barrier_to_Bar, (UWord)barrier, (UWord)bar );
2988 static void map_barrier_to_Bar_delete ( void* barrier ) {
2991 if (VG_(delFromFM)( map_barrier_to_Bar, &keyW, &valW, (UWord)barrier )) {
2993 tl_assert(keyW == (UWord)barrier);
3000 void* barrier,
3009 "(tid=%d, barrier=%p, count=%lu, resizable=%lu)\n",
3010 (Int)tid, (void*)barrier, count, resizable );
3027 bar = map_barrier_to_Bar_lookup_or_alloc(barrier);
3032 thr, "pthread_barrier_init: barrier is already initialised"
3039 thr, "pthread_barrier_init: threads are waiting at barrier"
3056 void* barrier )
3062 associated with the barrier, so as to avoid any possible
3066 "(tid=%d, barrier=%p)\n",
3067 (Int)tid, (void*)barrier );
3072 bar = map_barrier_to_Bar_lookup_or_alloc(barrier);
3077 thr, "pthread_barrier_destroy: barrier was never initialised"
3083 thr, "pthread_barrier_destroy: threads are waiting at barrier"
3092 don't-delete-it scheme, we need to mark the barrier as
3095 map_barrier_to_Bar_delete( barrier );
3137 void* barrier )
3145 If this is not the last thread arriving at the barrier, we simply
3159 waiting at the barrier can move past it.
3163 past the real barrier.
3167 barrier and have all moved on. There is no danger of any
3168 complications to do with some threads leaving the barrier and
3173 passed the barrier, even though, as per (2) above, they are
3174 guaranteed not to pass the barrier until we return.
3185 "(tid=%d, barrier=%p)\n",
3186 (Int)tid, (void*)barrier );
3191 bar = map_barrier_to_Bar_lookup_or_alloc(barrier);
3196 thr, "pthread_barrier_wait: barrier is uninitialised"
3219 void* barrier,
3228 "(tid=%d, barrier=%p, newcount=%lu)\n",
3229 (Int)tid, (void*)barrier, newcount );
3234 bar = map_barrier_to_Bar_lookup_or_alloc(barrier);
3239 thr, "pthread_barrier_resize: barrier is uninitialised"
3246 thr, "pthread_barrier_resize: barrier is may not be resized"
3266 moving on from the barrier in this situation, so just note
3272 the barrier, so need to mess with dep edges in the same way
3273 as if the barrier had filled up normally. */