Searched refs:barrier (Results 1 - 25 of 52) sorted by relevance

123

/external/qemu/
H A Dqemu-barrier.h7 /* Compiler barrier */
8 #define barrier() asm volatile("" ::: "memory") macro
/external/valgrind/main/drd/tests/
H A Dpth_barrier_race.c19 static pthread_barrier_t* barrier; variable
24 pthread_barrier_wait(barrier);
32 barrier = (pthread_barrier_t *) malloc(sizeof(*barrier));
33 pthread_barrier_init(barrier, NULL, 2);
37 pthread_barrier_wait(barrier);
43 pthread_barrier_destroy(barrier);
44 free(barrier);
H A Dbar_bad.stderr.exp3 initialise a barrier with zero count
4 pthread_barrier_init: 'count' argument is zero: barrier 0x........
9 initialise a barrier twice
10 Barrier reinitialization: barrier 0x........
13 barrier 0x........ was first observed at:
18 initialise a barrier which has threads waiting on it
19 Barrier reinitialization: barrier 0x........
22 barrier 0x........ was first observed at:
27 destroy a barrier that has waiting threads
28 Destruction of a barrier wit
[all...]
H A Dpth_barrier_race.stderr.exp2 Destruction of barrier not synchronized with barrier wait call: barrier 0x........
9 barrier 0x........ was first observed at:
H A Dpth_barrier_reinit.stderr.exp2 Barrier reinitialization: barrier 0x........
5 barrier 0x........ was first observed at:
/external/valgrind/main/drd/
H A Ddrd_barrier.h42 void DRD_(barrier_init)(const Addr barrier,
45 void DRD_(barrier_destroy)(const Addr barrier, const BarrierT barrier_type);
46 void DRD_(barrier_pre_wait)(const DrdThreadId tid, const Addr barrier,
48 void DRD_(barrier_post_wait)(const DrdThreadId tid, const Addr barrier,
H A Ddrd_barrier.c41 /** Information associated with one thread participating in a barrier. */
106 * Initialize the structure *p with the specified client-side barrier address,
107 * barrier object size and number of participants in each barrier.
111 const Addr barrier,
117 tl_assert(barrier != 0);
119 tl_assert(p->a1 == barrier);
135 p->oset[i] = VG_(OSetGen_Create)(0, 0, VG_(malloc), "drd.barrier.bi.1",
163 "Destruction of barrier that is being waited"
188 * Look up the client-side barrier addres
110 barrier_initialize(struct barrier_info* const p, const Addr barrier, const BarrierT barrier_type, const Word count) argument
193 barrier_get_or_allocate(const Addr barrier, const BarrierT barrier_type, const Word count) argument
214 barrier_get(const Addr barrier) argument
227 barrier_init(const Addr barrier, const BarrierT barrier_type, const Word count, const Bool reinitialization) argument
290 barrier_destroy(const Addr barrier, const BarrierT barrier_type) argument
329 barrier_pre_wait(const DrdThreadId tid, const Addr barrier, const BarrierT barrier_type) argument
404 barrier_post_wait(const DrdThreadId tid, const Addr barrier, const BarrierT barrier_type, const Bool waited, const Bool serializing) argument
[all...]
H A Ddrd.h230 * Report that a barrier has been initialized with a given barrier count. The
235 #define ANNOTATE_BARRIER_INIT(barrier, count, reinitialization_allowed) \
237 "ANNOTATE_BARRIER_INIT", barrier, \
240 /* Report that a barrier has been destroyed. */
241 #define ANNOTATE_BARRIER_DESTROY(barrier) \
244 barrier, 0, 0, 0)
246 /* Report that the calling thread is about to start waiting for a barrier. */
247 #define ANNOTATE_BARRIER_WAIT_BEFORE(barrier) \
250 barrier,
[all...]
H A Ddrd_pthread_intercepts.c881 int pthread_barrier_init_intercept(pthread_barrier_t* barrier, argument
889 barrier, pthread_barrier, count, 0, 0);
890 CALL_FN_W_WWW(ret, fn, barrier, attr, count);
892 barrier, pthread_barrier, 0, 0, 0);
897 (pthread_barrier_t* barrier, const pthread_barrierattr_t* attr,
898 unsigned count), (barrier, attr, count));
901 int pthread_barrier_destroy_intercept(pthread_barrier_t* barrier) argument
907 barrier, pthread_barrier, 0, 0, 0);
908 CALL_FN_W_W(ret, fn, barrier);
910 barrier, pthread_barrie
918 pthread_barrier_wait_intercept(pthread_barrier_t* barrier) argument
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
H A DNFAConversionThread.java38 Barrier barrier; field in class:NFAConversionThread
40 Barrier barrier,
45 this.barrier = barrier;
58 barrier.waitForRelease();
39 NFAConversionThread(Grammar grammar, Barrier barrier, int i, int j) argument
/external/kernel-headers/original/linux/
H A Dpreempt.h32 barrier(); \
37 barrier(); \
50 barrier(); \
H A Dcompiler-gcc.h8 /* Optimization barrier */
10 #define barrier() __asm__ __volatile__("": : :"memory") macro
H A Dcompiler.h65 /* Optimization barrier */
66 #ifndef barrier
67 # define barrier() __memory_barrier() macro
/external/valgrind/main/helgrind/tests/
H A Dbar_bad.stderr.exp2 initialise a barrier with zero count
21 initialise a barrier twice
24 Thread #x: pthread_barrier_init: barrier is already initialised
29 initialise a barrier which has threads waiting on it
32 Thread #x: pthread_barrier_init: barrier is already initialised
38 Thread #x: pthread_barrier_init: threads are waiting at barrier
43 destroy a barrier that has waiting threads
46 Thread #x: pthread_barrier_destroy: threads are waiting at barrier
58 destroy a barrier that was never initialised
61 Thread #x: pthread_barrier_destroy: barrier wa
[all...]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
H A DDataCommandConsolidator.java63 * Data consolidation barrier: consolidates all data contents into the last data command in the
66 private void barrier() { method in class:DataCommandConsolidator
92 * Block exit: acts as a conditional barrier only to data contained within the block.
97 barrier();
109 barrier();
119 barrier();
124 barrier();
129 barrier();
134 barrier();
139 barrier();
[all...]
/external/kernel-headers/original/asm-x86/
H A Dsystem_32.h231 * over this barrier. All reads preceding this primitive are guaranteed
285 # define smp_rmb() barrier()
290 # define smp_wmb() barrier()
295 #define smp_mb() barrier()
296 #define smp_rmb() barrier()
297 #define smp_wmb() barrier()
299 #define set_mb(var, value) do { var = value; barrier(); } while (0)
H A Datomic_32.h260 #define smp_mb__before_atomic_dec() barrier()
261 #define smp_mb__after_atomic_dec() barrier()
262 #define smp_mb__before_atomic_inc() barrier()
263 #define smp_mb__after_atomic_inc() barrier()
H A Dbitops_32.h71 * not contain a memory barrier, so if it is used for locking purposes,
93 barrier();
114 * No memory barrier is required here, because x86 cannot reorder stores past
119 barrier();
123 #define smp_mb__before_clear_bit() barrier()
124 #define smp_mb__after_clear_bit() barrier()
168 * It also implies a memory barrier.
220 * It also implies a memory barrier.
271 * It also implies a memory barrier.
/external/kernel-headers/original/asm-mips/
H A Dcmpxchg.h75 #define __cmpxchg(ptr, old, new, barrier) \
82 barrier; \
99 barrier; \
/external/chromium/base/third_party/dynamic_annotations/
H A Ddynamic_annotations.c62 const char *file, int line, const volatile void *barrier, long count,
65 const char *file, int line, const volatile void *barrier) {}
67 const char *file, int line, const volatile void *barrier) {}
69 const char *file, int line, const volatile void *barrier) {}
61 AnnotateBarrierInit( const char *file, int line, const volatile void *barrier, long count, long reinitialization_allowed) argument
64 AnnotateBarrierWaitBefore( const char *file, int line, const volatile void *barrier) argument
66 AnnotateBarrierWaitAfter( const char *file, int line, const volatile void *barrier) argument
68 AnnotateBarrierDestroy( const char *file, int line, const volatile void *barrier) argument
H A Ddynamic_annotations.h335 The "barrier" argument is a pointer to the barrier object. */
337 /* Report that the "barrier" has been initialized with initial "count".
340 #define ANNOTATE_BARRIER_INIT(barrier, count, reinitialization_allowed) \
341 DYNAMIC_ANNOTATIONS_NAME(AnnotateBarrierInit)(__FILE__, __LINE__, barrier, \
344 /* Report that we are about to enter barrier_wait("barrier"). */
345 #define ANNOTATE_BARRIER_WAIT_BEFORE(barrier) \
347 barrier)
349 /* Report that we just exited barrier_wait("barrier"). */
350 #define ANNOTATE_BARRIER_WAIT_AFTER(barrier) \
[all...]
/external/valgrind/dynamic_annotations/
H A Ddynamic_annotations.h334 The "barrier" argument is a pointer to the barrier object. */
336 /* Report that the "barrier" has been initialized with initial "count".
339 #define ANNOTATE_BARRIER_INIT(barrier, count, reinitialization_allowed) \
340 DYNAMIC_ANNOTATIONS_NAME(AnnotateBarrierInit)(__FILE__, __LINE__, barrier, \
343 /* Report that we are about to enter barrier_wait("barrier"). */
344 #define ANNOTATE_BARRIER_WAIT_BEFORE(barrier) \
346 barrier)
348 /* Report that we just exited barrier_wait("barrier"). */
349 #define ANNOTATE_BARRIER_WAIT_AFTER(barrier) \
[all...]
H A Ddynamic_annotations.c69 const char *file, int line, const volatile void *barrier, long count,
72 const char *file, int line, const volatile void *barrier) {DYNAMIC_ANNOTATIONS_IMPL}
74 const char *file, int line, const volatile void *barrier) {DYNAMIC_ANNOTATIONS_IMPL}
76 const char *file, int line, const volatile void *barrier) {DYNAMIC_ANNOTATIONS_IMPL}
68 AnnotateBarrierInit( const char *file, int line, const volatile void *barrier, long count, long reinitialization_allowed) argument
71 AnnotateBarrierWaitBefore( const char *file, int line, const volatile void *barrier) argument
73 AnnotateBarrierWaitAfter( const char *file, int line, const volatile void *barrier) argument
75 AnnotateBarrierDestroy( const char *file, int line, const volatile void *barrier) argument
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DMoreExecutorsTest.java128 final CyclicBarrier barrier = new CyclicBarrier(2);
143 barrier.await(1, TimeUnit.SECONDS);
146 barrier.await(1, TimeUnit.SECONDS);
151 barrier.await(1, TimeUnit.SECONDS);
166 barrier.await(1, TimeUnit.SECONDS);
181 barrier.await(1, TimeUnit.SECONDS);
185 barrier.await(1, TimeUnit.SECONDS);
/external/kernel-headers/original/asm-arm/
H A Datomic.h204 #define smp_mb__before_atomic_dec() barrier()
205 #define smp_mb__after_atomic_dec() barrier()
206 #define smp_mb__before_atomic_inc() barrier()
207 #define smp_mb__after_atomic_inc() barrier()

Completed in 295 milliseconds

123