Searched defs:barrier (Results 1 - 25 of 124) sorted by relevance

12345

/external/llvm/test/MC/Hexagon/
H A Dempty_asm.s4 barrier label
6 barrier label
8 # CHECK-NEXT: barrier
12 # CHECK-NEXT: barrier
/external/llvm/test/MC/Hexagon/instructions/
H A Dsystem_user.s16 # Memory barrier
18 barrier label
/external/autotest/client/tests/profiler_sync/
H A Dprofiler_sync.py6 from autotest_lib.client.common_lib import barrier namespace
23 @param masterid: The master barrier host id where autoserv is running.
28 barrier_server = barrier.listen_server(port=11920)
29 b0 = self.job.barrier(hostid, "sync_profilers", timeout_start,
33 b1 = self.job.barrier(hostid, "start_profilers", timeout_start,
37 b2 = self.job.barrier(hostid, "local_sync_profilers", timeout_sync)
42 b3 = self.job.barrier(hostid, "stop_profilers", timeout_stop,
49 b4 = self.job.barrier(hostid, "finish_profilers", timeout_stop,
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/
H A D3-1.c30 pthread_barrier_t barrier; local
32 /* Intilized barrier with count 0 (it should return EINVAL) */
34 rc = pthread_barrier_init(&barrier, NULL, COUNT);
38 ("Test FAILED: pthread_barrier_init() does not return EINVAL when intializing a barrier with count=0,"
H A D1-1.c11 * required to use the barrier referenced by barrier and shall initialize
12 * the barrier with attributes referenced by attr. If attr is NULL,
13 * the default barrier attributes shall be used;
14 * the effect is the same as passing the address of a default barrier attributes object.
30 static pthread_barrier_t barrier; variable
37 /* Intilized barrier with NULL attribute, check that this can be done. */
38 rc = pthread_barrier_init(&barrier, NULL, COUNT);
47 if (pthread_barrier_destroy(&barrier) != 0) {
53 /* Initialize a barrier attribut
[all...]
H A D4-1.c10 * [EBUSY] The implementation has detected an attempt to reinitialize a barrier while it is
17 * 1. Main initialize barrier with count 2
32 static pthread_barrier_t barrier; variable
47 printf("thread: barrier wait\n");
48 rc = pthread_barrier_wait(&barrier);
65 printf("Test PASSED: main blocked on barrier init\n");
82 printf("main: Initialize barrier with count = 2\n");
83 if (pthread_barrier_init(&barrier, NULL, 2) != 0) {
114 printf("main: reinitilize barrier while thread is blocking on it\n");
115 rc = pthread_barrier_init(&barrier, NUL
[all...]
/external/compiler-rt/test/tsan/
H A Dmust_deadlock.cc13 pthread_barrier_t barrier; variable
18 pthread_barrier_wait(&barrier);
29 pthread_barrier_init(&barrier, 0, 2);
39 pthread_barrier_wait(&barrier);
48 pthread_barrier_destroy(&barrier);
H A Dbarrier.cc16 pthread_barrier_t barrier; variable
26 pthread_barrier_wait(&barrier);
32 pthread_barrier_init(&barrier, 0, kSize);
38 pthread_barrier_destroy(&barrier);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/
H A D1-1.c10 * The pthread_barrier_destroy() function shall destroy the barrier
11 * referenced by barrier and release any resources used by the barrier.
14 * 1. Main initialize barrier with count 2
15 * 2. Main destroy the barrier
27 static pthread_barrier_t barrier; variable
36 if (pthread_barrier_init(&barrier, NULL, 2) != 0) {
42 rc = pthread_barrier_destroy(&barrier);
H A D2-1.c10 * Attempt to destroy a barrier which has a waiter. The standard recommends
13 * barrier.
36 static pthread_barrier_t barrier; variable
49 printf("child: barrier wait\n");
51 rc = pthread_barrier_wait(&barrier);
71 rc = pthread_barrier_wait(&barrier);
86 printf("main: Initialize barrier with count = 2\n");
87 if (pthread_barrier_init(&barrier, NULL, 2) != 0) {
122 printf("main: destroy barrier while child is waiting\n");
123 rc = pthread_barrier_destroy(&barrier);
[all...]
/external/valgrind/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);
/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/autotest/client/tests/barriertest/
H A Dbarriertest.py5 from autotest_lib.client.common_lib import barrier, error namespace
14 server = barrier.listen_server()
16 # Basic barrier rendezvous test.
17 self.job.barrier(our_addr, 'First', timeout=timeout,
23 self.job.barrier(our_addr, 'Second', timeout=timeout,
31 self.job.barrier(our_addr, 'WillAbort', timeout=timeout,
37 # We did get an error from the barrier, but was is acceptable or
42 raise error.TestFail('Explicit barrier rendezvous abort failed.')
47 self.job.barrier(our_addr, 'FinalSync', timeout=timeout,
55 self.job.barrier(our_add
[all...]
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
H A Dbarriers.h5 #define barrier() __asm__ __volatile__("" : : : "memory") macro
/external/autotest/server/
H A Dstandalone_profiler.py14 from autotest_lib.client.common_lib import barrier namespace
36 @param machines: sequence of all the hostnames involved in the barrier
69 sb = barrier.barrier(_PROF_MASTER, "sync_profilers",
75 sb = barrier.barrier(_PROF_MASTER, "start_profilers",
81 sb = barrier.barrier(_PROF_MASTER, "stop_profilers",
87 sb = barrier.barrier(_PROF_MASTE
[all...]
/external/google-breakpad/src/common/android/testing/
H A Dpthread_fixes.h53 int pthread_barrier_init(pthread_barrier_t* barrier, argument
56 barrier->count = count;
57 pthread_mutex_init(&barrier->mutex, NULL);
58 pthread_cond_init(&barrier->cond, NULL);
62 int pthread_barrier_wait(pthread_barrier_t* barrier) { argument
64 pthread_mutex_lock(&barrier->mutex);
67 if (--barrier->count == 0) {
68 // First thread to reach the barrier
69 pthread_cond_broadcast(&barrier->cond);
70 pthread_mutex_unlock(&barrier
83 pthread_barrier_destroy(pthread_barrier_t *barrier) argument
[all...]
/external/linux-kselftest/tools/testing/selftests/bpf/
H A Dtest_pkt_access.c20 #define barrier() __asm__ __volatile__("": : :"memory") macro
57 barrier(); /* to force ordering of checks */
/external/ltp/lib/newlib_tests/
H A Dtest08.c27 static pthread_barrier_t barrier; variable
31 pthread_barrier_init(&barrier, NULL, THREADS);
52 pthread_barrier_wait(&barrier);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/
H A D1-1.c10 * at the barrier referenced by barrier. The calling thread shall block
12 * specifying the barrier.
15 * 1. Main initialize barrier with count 2
30 static pthread_barrier_t barrier; variable
41 printf("child: barrier wait\n");
42 rc = pthread_barrier_wait(&barrier);
60 printf("Test FAILED: main blocked on barrier wait\n");
77 printf("Initialize barrier with count = 2\n");
78 if (pthread_barrier_init(&barrier, NUL
[all...]
H A D2-1.c10 * specifying the barrier, the constant PTHREAD_BARRIER_SERIAL_THREAD shall
12 * to each of the remaining threads. At this point, the barrier shall
18 * 2. In each loop, Main thread initialize barrier, with count set to THREAD_NUM
38 static pthread_barrier_t barrier; variable
48 printf("child[%d]: barrier wait\n", thread_num);
49 rc = pthread_barrier_wait(&barrier);
75 printf("Initialize barrier with count = %d\n", THREAD_NUM);
76 if (pthread_barrier_init(&barrier, NULL, THREAD_NUM) != 0) {
115 if (pthread_barrier_destroy(&barrier) != 0) {
H A D3-1.c9 * If a signal is delivered to a thread blocked on a barrier, upon return
10 * from the signal handler the thread shall resume waiting at the barrier
11 * if the barrier wait has not completed (that is, if the
12 * required number of threads have not arrived at the barrier
16 * 1. Main initialize barrier with count 2
35 static pthread_barrier_t barrier; variable
62 printf("thread: call barrier wait\n");
63 rc = pthread_barrier_wait(&barrier);
84 printf("Initialize barrier with count = 2\n");
85 if (pthread_barrier_init(&barrier, NUL
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/
H A D2-1.c10 * a barrier to be operated upon by any thread that has access to the memory
11 * where the barrier is allocated. If the process-shared attribute
12 * is PTHREAD_PROCESS_PRIVATE, the barrier shall only be operated
14 * that initialized the barrier; if threads of different processes attempt
15 * to operate on such a barrier, the behavior is undefined.
20 * 1. Create a piece of shared memory object, create pthread barrier object 'barrier'
22 * 2. Parent map the shared memory to its memory space, put 'barrier' into it;
24 * 4. Child process map the 'barrier' to its memory space;
61 static pthread_barrier_t *barrier; local
[all...]
/external/mesa3d/src/gallium/tests/unit/
H A Dpipe_barrier_test.c33 * the barrier.
50 static pipe_barrier barrier; variable
75 LOG("thread %d before barrier\n", thread_id);
80 pipe_barrier_wait(&barrier);
111 pipe_barrier_init(&barrier, NUM_THREADS);
124 pipe_barrier_destroy(&barrier);
/external/mesa3d/src/intel/vulkan/tests/
H A Dstate_pool_test_helper.h32 pthread_barrier_t barrier; variable
43 pthread_barrier_wait(&barrier);
61 pthread_barrier_init(&barrier, NULL, NUM_THREADS);
/external/valgrind/memcheck/tests/solaris/
H A Dthr_daemon_exit_libc.c16 static pthread_barrier_t barrier; variable
21 pthread_barrier_wait(&barrier);
32 pthread_barrier_wait(&barrier);
40 int ret = pthread_barrier_init(&barrier, NULL,
66 pthread_barrier_wait(&barrier);

Completed in 5917 milliseconds

12345