/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...] |
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...] |
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");
|
1-3.c | 23 * -> each call pthread_once 108 ret = pthread_once(arg, my_init); 111 UNRESOLVED(ret, "pthread_once failed");
|
/prebuilts/ndk/r11/sources/android/support/src/locale/ |
uselocale.c | 40 pthread_once(&s_once, init_key);
|
/prebuilts/ndk/r13/sources/android/support/src/locale/ |
uselocale.c | 40 pthread_once(&s_once, init_key);
|
/external/webrtc/webrtc/modules/audio_device/android/ |
ensure_initialized.cc | 41 RTC_CHECK_EQ(0, pthread_once(&g_initialize_once, &EnsureInitializedOnce));
|
/bionic/libc/bionic/ |
pthread_once.cpp | 41 int pthread_once(pthread_once_t* once_control, void (*init_routine)(void)) { function
|
NetdClient.cpp | 55 if (pthread_once(&netdClientInitOnce, netdClientInitImpl)) {
|
/external/libvpx/libvpx/vpx_ports/ |
vpx_once.h | 121 pthread_once(&lock, func);
|
/external/webrtc/talk/app/webrtc/test/ |
androidtestinitializer.cc | 71 RTC_CHECK_EQ(0, pthread_once(&g_initialize_once, &EnsureInitializedOnce));
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
ProcessPipe.cpp | 31 // Use it with pthread_once for thread safety. 74 pthread_once(&sProcPipeOnce, processPipeInitOnce);
|
/external/valgrind/none/tests/ |
pth_once.c | 44 if ((rtn = pthread_once(&welcome_once_block, 46 fprintf(stderr, "pthread_once failed with %d",rtn);
|
/frameworks/av/media/libcpustats/include/cpustats/ |
ThreadCpuUsage.h | 49 (void) pthread_once(&sOnceControl, &init);
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
cxa_exception_storage.cpp | 95 if (0 != pthread_once(&flag_, construct_)) 96 abort_message("pthread_once failure in __cxa_get_globals_fast()");
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++abi/src/ |
cxa_exception_storage.cpp | 95 if (0 != pthread_once(&flag_, construct_)) 96 abort_message("pthread_once failure in __cxa_get_globals_fast()");
|
/external/clang/test/Analysis/ |
unix-fns.c | 12 int pthread_once(pthread_once_t *, void (*)(void)); 73 pthread_once(&pred, test_pthread_once_aux); // expected-warning{{Call to 'pthread_once' uses the local variable 'pred' for the "control" value}} 77 pthread_once(&pred, test_pthread_once_aux); // no-warning 635 // CHECK-NEXT: <string>Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'?</string> 637 // CHECK-NEXT: <string>Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'?</string> 640 // CHECK-NEXT: <key>description</key><string>Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'?</string> 642 // CHECK-NEXT: <key>type</key><string>Improper use of 'pthread_once'</string> [all...] |
/external/selinux/libselinux/src/ |
selinux_internal.h | 113 /* Make pthread_once optional */ 114 #pragma weak pthread_once macro 122 if (pthread_once != NULL) \ 123 pthread_once (&(ONCE_CONTROL), (INIT_FUNCTION)); \
|
/system/core/libcutils/ |
qtaguid.c | 103 pthread_once(&resTrackInitDone, qtaguid_resTrack); 151 pthread_once(&resTrackInitDone, qtaguid_resTrack);
|
/build/kati/ |
thread_local.h | 77 pthread_once(once, ThreadLocalInit<Type*, key>);
|
/external/google-breakpad/src/common/linux/ |
guid_creator.cc | 75 pthread_once(&once_control, &InitOnceImpl);
|
/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);
|
/bionic/benchmarks/ |
pthread_benchmark.cpp | 60 pthread_once(&once, DummyPthreadOnceInitFunction); 63 pthread_once(&once, DummyPthreadOnceInitFunction);
|