Home
last modified time | relevance | path

Searched refs:pthread_key_create (Results 1 - 25 of 84) sorted by relevance

1234

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dpthread_key_test.cpp25 EXPECT_EQ(0, pthread_key_create(&pthreadKey, nullptr)); in HWTEST_F()
41 falseNum = pthread_key_create(&pthreadKey, nullptr); in HWTEST_F()
64 pthread_key_create(&pthreadKey, nullptr); in HWTEST_F()
95 EXPECT_EQ(0, pthread_key_create(&pthreadKey, nullptr)); in HWTEST_F()
/third_party/selinux/libselinux/src/
H A Dselinux_internal.h13 #pragma weak pthread_key_create macro
31 (pthread_key_create != NULL ? pthread_key_create(KEY, DESTRUCTOR) : -1)
/third_party/musl/libc-test/src/functional/
H A Dpthread_tsd.c32 TESTR(r, pthread_key_create(&k1, dtor), "failed to create key"); in main()
33 TESTR(r, pthread_key_create(&k2, dtor), "failed to create key"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_key_create.c50 * @tc.desc: Verify pthread_key_create process success when second args is null.
57 int32_t ret = pthread_key_create(&g_key, NULL); in pthread_key_create_0100()
65 * @tc.desc: Verify pthread_key_create process success when second args is not null.
71 int32_t ret = pthread_key_create(&g_key, testfunc); in pthread_key_create_0200()
H A Dpthread_setspecific.c52 pthread_key_create(&g_key, NULL); in pthread_setspecific_0100()
66 pthread_key_create(&g_key, NULL); in pthread_setspecific_0200()
H A Dpthread_key_delete.c28 pthread_key_create(&key, NULL); in pthread_key_delete_0100()
H A Dpthread_getspecific.c40 pthread_key_create(&g_key, NULL); in pthread_getspecific_0100()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/
H A D2-1.c8 * Test that pthread_key_create()
31 if (pthread_key_create(&key, NULL) != 0) { in main()
32 printf("Error: pthread_key_create() failed\n"); in main()
H A D3-1.c8 * Test that pthread_key_create()
18 * 2. Use pthread_key_create() and create those keys
62 if (pthread_key_create(&key, dest_func) != 0) { in main()
63 printf("Error: pthread_key_create() failed\n"); in main()
H A D1-2.c8 * Test that pthread_key_create()
11 * provided by pthread_key_create() are opaque objects used to locate thread-specific data.
52 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
53 printf("Error: pthread_key_create() failed\n"); in main()
H A D1-1.c8 * Test that pthread_key_create()
11 * provided by pthread_key_create() are opaque objects used to locate thread-specific data.
18 * 2. Use pthread_key_create() and create those keys
40 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
41 printf("Error: pthread_key_create() failed\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getspecific/
H A D3-1.c31 if (pthread_key_create(&key, NULL) != 0) { in main()
32 printf("Error: pthread_key_create() failed\n"); in main()
H A D1-1.c11 * Calling pthread_getspecific() with a key value not obtained from pthread_key_create() or
37 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
38 printf("Error: pthread_key_create() failed\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/
H A D1-2.c10 * Shall delete a thread-specific data key previously returned by pthread_key_create. The
40 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
41 printf("Error: pthread_key_create() failed\n"); in main()
H A D1-1.c10 * Shall delete a thread-specific data key previously returned by pthread_key_create. The
39 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
40 printf("Error: pthread_key_create() failed\n"); in main()
H A D2-1.c64 if (pthread_key_create(&key, dest_func) != 0) { in main()
65 printf("Error: pthread_key_create() failed\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/speculative/
H A D5-1.c10 * Test that pthread_key_create()
12 * If successful, the pthread_key_create() function shall store the newly
27 * 2. Use pthread_key_create() and create those keys
48 rc = pthread_key_create(&keys[i], NULL); in main()
69 printf("Error: pthread_key_create() failed with %d\n", rc); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setspecific/
H A D1-1.c11 * pthread_key_create. Different threads may bind different values to the same key.
12 * Calling pthread_setspecific with a key value not obtiained from pthread_key_create of after
38 if (pthread_key_create(&keys[i], NULL) != 0) { in main()
39 printf("Error: pthread_key_create() failed\n"); in main()
H A D1-2.c11 * pthread_key_create. Different threads may bind different values to the same key.
12 * Calling pthread_setspecific with a key value not obtiained from pthread_key_create of after
62 if (pthread_key_create(&key, NULL) != 0) { in main()
63 printf("Error: pthread_key_create() failed\n"); in main()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A Dossource_posix.cpp34 if ((pthread_key_create(&pPoolIndex, NULL)) != 0) { in OS_AllocTLSIndex()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
H A D3-1.c46 rc = pthread_key_create(&key, destructor); in a_thread_func()
48 printf(ERROR_PREFIX "pthread_key_create\n"); in a_thread_func()
/third_party/libunwind/libunwind/tests/
H A DLtest-nocalloc.c119 if (pthread_key_create (&key, NULL)) in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
H A D2-2.c53 rc = pthread_key_create(&key, destructor); in a_thread_func()
55 printf(ERROR_PREFIX "pthread_key_create\n"); in a_thread_func()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceTLS.h67 // pthread_key_create() call, where a zero value indicates success, and a
85 FieldName##__initStatus = pthread_key_create(&FieldName##__key, nullptr); \
/third_party/vk-gl-cts/framework/delibs/dethread/unix/
H A DdeThreadLocalUnix.c52 if (pthread_key_create(&key, DE_NULL) != 0) in deThreadLocal_create()

Completed in 13 milliseconds

1234