/external/llvm/test/CodeGen/X86/ |
2007-09-06-ExtWeakAliasee.ll | 3 @__gthrw_pthread_once = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, void ()*)*> [#uses=0] 5 define weak i32 @pthread_once(i32*, void ()*) { 9 ; CHECK: .weak pthread_once 10 ; CHECK: pthread_once: 13 ; CHECK: __gthrw_pthread_once = pthread_once
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
2007-09-06-ExtWeakAliasee.ll | 2 @__gthrw_pthread_once = alias weak i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, void ()*)*> [#uses=0] 4 declare extern_weak i32 @pthread_once(i32*, void ()*)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
1-1.c | 8 * Test that pthread_once() 10 * Dynamic package installation. Tihe first call to pthread_once() by any 12 * 'init_routine' with no arguments. Subsequent calls of pthread_once() 18 * 1.Initialize a pthread_once object 19 * 2.Call pthread_once passing it this object 20 * 3.Call pthread_once again, this time, it shouldn't execute the function 31 /* The init function that pthread_once calls */ 45 /* Call pthread_once, passing it the once_control */ 46 ret = pthread_once(&once_control, an_init_func); 48 printf("pthread_once failed\n") [all...] |
assertions.xml | 5 int pthread_once(pthread_once_t *once_control, void (*init_routine) (void)); 7 The first call to pthread_once() by any 9 'init_routine' with no arguments. Subsequent calls of pthread_once() 15 On return from pthread_once(), 'init_routine' shall have completed. 18 The pthread_once() function is not a cancelation point. But if 20 'once_control' shall be as if pthread_once() was never called. 24 behavior of pthread_once() is undefined if 'once_control' has automatic
|
3-1.c | 8 * Test pthread_once() 10 * The pthread_once() function is not a cancelation point. However if 12 * 'once_control' shall be as if pthread_once() was never called. 16 * 2. In the thread routine, call pthread_once using a global pthread_once_t 18 * 3. Cancel the thread during the pthread_once init function 19 * 4. Call pthread_once again with the same pthread once_t object 20 * 5. This should call the pthread_once init function. If not, the test fails. 34 /* The init function that pthread_once calls */ 57 pthread_once(&once_control, (void *)an_init_func); 61 /* 2nd init function used by the 2nd call of pthread_once */ [all...] |
coverage.txt | 1 This document defines the coverage for the pthread_once function:
|
4-1-buildonly.c | 8 Test pthread_once()
|
1-2.c | 19 * In a process, the first call to pthread_once with a given once_control 23 * -> call pthread_once 26 * The test fails if the init_routine has not been called after pthread_once 101 ret = pthread_once(&myctl, my_init); 104 UNRESOLVED(ret, "pthread_once failed");
|
2-1.c | 19 * pthread_once returns only when init routine has completed. 22 * -> call pthread_once (the init routine lasts for 1 second) 25 * The test fails if the init_routine has not been completed when pthread_once 101 ret = pthread_once(&myctl, my_init); 104 UNRESOLVED(ret, "pthread_once failed");
|
6-1.c | 22 * -> kill a thread which calls pthread_once 186 ret = pthread_once(&once_ctl, initializer); 189 FAILED("pthread_once returned EINTR"); 193 UNRESOLVED(ret, "pthread_once failed"); 196 ret = pthread_once(&once_ctl, initializer); 199 FAILED("pthread_once returned EINTR"); 203 UNRESOLVED(ret, "pthread_once failed");
|
1-3.c | 23 * -> each call pthread_once 108 ret = pthread_once(arg, my_init); 111 UNRESOLVED(ret, "pthread_once failed");
|
/external/selinux/libselinux/src/ |
selinux_internal.h | 114 /* Make pthread_once optional */ 115 #pragma weak pthread_once macro 123 if (pthread_once != NULL) \ 124 pthread_once (&(ONCE_CONTROL), (INIT_FUNCTION)); \
|
/external/valgrind/none/tests/ |
pth_once.c | 44 if ((rtn = pthread_once(&welcome_once_block, 46 fprintf(stderr, "pthread_once failed with %d",rtn);
|
/external/valgrind/helgrind/tests/ |
tc21_pthonce.c | 3 with pthread_once calls. Which it appears to. 54 ensure threads[0] gets to the pthread_once call first. This is so 72 r= pthread_once(&welcome_once_block, welcome); assert(!r);
|
/frameworks/av/services/audioflinger/ |
FastMixerState.cpp | 40 int ok = pthread_once(&sMaxFastTracksOnce, sMaxFastTracksInit); 42 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_once/ |
stress.c | 19 * The init_routine from pthread_once never execute 24 * -> All threads call pthread_once at the same time 130 ret = pthread_once(&once_ctl, init_routine); 133 UNRESOLVED(ret, "pthread_once failed"); 227 output("pthread_once stress test PASSED -- %llu iterations\n",
|
/toolchain/binutils/binutils-2.27/gold/ |
gold-threads.cc | 315 // pthread_once. 329 // A routine passed to pthread_once which runs the Once pointer. 366 // If there is no threads support, we don't need to use pthread_once. 399 // pthread_once, we use a static variable: once_pointer. This in 410 err = pthread_once(this->once_->once_control(), c_run_once); 412 gold_fatal(_("pthread_once failed: %s"), strerror(err));
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
ProcessPipe.cpp | 31 // Use it with pthread_once for thread safety. 74 pthread_once(&sProcPipeOnce, processPipeInitOnce);
|
/external/ltp/include/ |
tst_safe_pthread.h | 32 pthread_once(<p_once, exec_fn); \
|
/external/webrtc/webrtc/modules/audio_device/android/ |
ensure_initialized.cc | 41 RTC_CHECK_EQ(0, pthread_once(&g_initialize_once, &EnsureInitializedOnce));
|
/bionic/benchmarks/ |
pthread_benchmark.cpp | 61 pthread_once(&once, DummyPthreadOnceInitFunction); 64 pthread_once(&once, DummyPthreadOnceInitFunction);
|
/external/swiftshader/third_party/LLVM/test/Linker/ |
2011-08-22-ResolveAlias.ll | 10 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once 37 declare extern_weak i32 @pthread_once(i32*, void ()*)
|
2011-08-22-ResolveAlias2.ll | 13 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once 42 declare extern_weak i32 @pthread_once(i32*, void ()*)
|
/system/core/libqtaguid/ |
qtaguid.c | 85 pthread_once(&resTrackInitDone, legacy_resTrack); 133 pthread_once(&resTrackInitDone, legacy_resTrack);
|
/bionic/libc/bionic/ |
NetdClient.cpp | 56 if (pthread_once(&netdClientInitOnce, netdClientInitImpl)) {
|