Home
last modified time | relevance | path

Searched refs:pthread_create (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dposix-return.cpp36 extern "C" int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
62 if (pthread_create(NULL, NULL, NULL, NULL) < 0) {} in warningLessThanZero()
63 // CHECK-MESSAGES: :[[@LINE-1]]:46: warning: the comparison always evaluates to false because pthread_create always returns non-negative values in warningLessThanZero()
64 // CHECK-FIXES: pthread_create(NULL, NULL, NULL, NULL) > 0 in warningLessThanZero()
86 if (pthread_create(NULL, NULL, NULL, NULL) >= 0) {} in warningAlwaysTrue()
87 // CHECK-MESSAGES: :[[@LINE-1]]:46: warning: the comparison always evaluates to true because pthread_create always returns non-negative values in warningAlwaysTrue()
119 if (pthread_create(NULL, NULL, NULL, NULL) == -1) {} in warningEqualsNegative()
120 // CHECK-MESSAGES: :[[@LINE-1]]:46: warning: pthread_create in warningEqualsNegative()
121 if (pthread_create(NULL, NULL, NULL, NULL) != -1) {} in warningEqualsNegative()
123 if (pthread_create(NUL in warningEqualsNegative()
[all...]
/llvm-project/llvm/test/Transforms/Attributor/IPConstantProp/
H A Dpthreads.ll14 ; pthread_create(&thread, NULL, foo, NULL);
15 ; pthread_create(&thread, NULL, bar, &GlobalVPtr);
40 ; TUNIT-NEXT: [[CALL:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @foo, ptr nofree readnone align 4294967296 undef)
41 ; TUNIT-NEXT: [[CALL1:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @bar, ptr noalias nofree nonnull readnone align 8 captures(none) dereferenceable(8) undef)
42 ; TUNIT-NEXT: [[CALL2:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @baz, ptr noalias nofree noundef nonnull readnone align 8 captures(none) dereferenceable(1) [[ALLOC1]])
43 ; TUNIT-NEXT: [[CALL3:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @buz, ptr noalias nofree noundef nonnull readnone align 8 dereferenceable(1) "no-capture-maybe-returned" [[ALLOC2]])
51 ; CGSCC-NEXT: [[CALL:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @foo, ptr nofree noundef readnone align 4294967296 null)
52 ; CGSCC-NEXT: [[CALL1:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @bar, ptr noalias nofree noundef nonnull readnone align 8 captures(none) dereferenceable(8) @GlobalVPtr)
53 ; CGSCC-NEXT: [[CALL2:%.*]] = call i32 @pthread_create(ptr noundef nonnull align 8 dereferenceable(8) [[THREAD]], ptr noundef align 4294967296 null, ptr noundef nonnull @baz, ptr noalias nofree noundef nonnull readnone align 8 captures(none) dereferenceable(1) [[ALLOC1]])
54 ; CGSCC-NEXT: [[CALL3:%.*]] = call i32 @pthread_create(pt
[all...]
/llvm-project/llvm/test/Transforms/SCCP/
H A Dpthreads.ll13 ; pthread_create(&thread, NULL, foo, NULL);
14 ; pthread_create(&thread, NULL, bar, &GlobalVPtr);
31 ; CHECK-NEXT: [[CALL:%.*]] = call i32 @pthread_create(ptr nonnull [[THREAD]], ptr null, ptr nonn…
32 ; CHECK-NEXT: [[CALL1:%.*]] = call i32 @pthread_create(ptr nonnull [[THREAD]], ptr null, ptr non…
37 %call = call i32 @pthread_create(ptr nonnull %thread, ptr null, ptr nonnull @foo, ptr null)
38 …%call1 = call i32 @pthread_create(ptr nonnull %thread, ptr null, ptr nonnull @bar, ptr @GlobalVPtr)
42 declare !callback !0 dso_local i32 @pthread_create(ptr, ptr, ptr, ptr)
/llvm-project/libunwind/src/
H A DRWMutex.hpp78 pthread_create(pthread_t *thread, const pthread_attr_t *attr,
94 return !pthread_create || (pthread_rwlock_rdlock(&_lock) == 0);
97 return !pthread_create || (pthread_rwlock_unlock(&_lock) == 0);
100 return !pthread_create || (pthread_rwlock_wrlock(&_lock) == 0);
103 return !pthread_create || (pthread_rwlock_unlock(&_lock) == 0);
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dpthread_join.cpp30 assert(!pthread_create(&thread[0], nullptr, fn, (void *)1000)); in main()
31 assert(!pthread_create(&thread[1], nullptr, fn, (void *)1001)); in main()
32 assert(!pthread_create(&thread[2], nullptr, fn, (void *)1002)); in main()
33 assert(!pthread_create(&thread[3], nullptr, fn, (void *)1003)); in main()
37 assert(!pthread_create(&thread[4], &attr, fn, (void *)1004)); in main()
/llvm-project/libc/test/integration/src/pthread/
H A DCMakeLists.txt16 libc.src.pthread.pthread_create
41 libc.src.pthread.pthread_create
76 libc.src.pthread.pthread_create
88 libc.src.pthread.pthread_create
105 libc.src.pthread.pthread_create
120 libc.src.pthread.pthread_create
139 libc.src.pthread.pthread_create
152 libc.src.pthread.pthread_create
174 libc.src.pthread.pthread_create
189 libc.src.pthread.pthread_create
[all...]
H A Dpthread_once_test.cpp46 LIBC_NAMESPACE::pthread_create(threads + i, nullptr, func, nullptr), 0); in call_from_5_threads()
88 LIBC_NAMESPACE::pthread_create(&t1, nullptr, once_func_caller, nullptr), in test_synchronization()
91 LIBC_NAMESPACE::pthread_create(&t2, nullptr, once_func_caller, nullptr), in test_synchronization()
/llvm-project/lldb/test/API/functionalities/tsan/thread_numbers/
H A Dmain.c30 pthread_create(&t, NULL, nothing, NULL); in main()
35 pthread_create(&t1, NULL, f1, NULL); in main()
39 pthread_create(&t, NULL, nothing, NULL); in main()
44 pthread_create(&t2, NULL, f2, NULL); in main()
/llvm-project/compiler-rt/test/tsan/
H A Dfd_tid_recycled.cpp31 pthread_create(&t_create, NULL, ThreadCreatePipe, NULL); in main()
36 pthread_create(&t_dummy, NULL, ThreadDummy, NULL); in main()
41 pthread_create(&t[0], NULL, ThreadWrite, NULL); in main()
42 pthread_create(&t[1], NULL, ThreadClose, NULL); in main()
H A Drace_on_heap.cpp28 pthread_create(&t[0], 0, AllocThread, 0); in main()
31 pthread_create(&t[0], 0, Thread1, (char*)p + 16); in main()
32 pthread_create(&t[1], 0, Thread2, (char*)p + 16); in main()
H A Djava_finalizer2.cpp62 pthread_create(&th[0], 0, Thread1, heap); in main()
63 pthread_create(&th[1], 0, Thread2, heap); in main()
66 pthread_create(&ballast[i], 0, Ballast, heap); in main()
67 pthread_create(&th[2], 0, Thread3, heap); in main()
H A Dprint_full_thread_history.cpp21 pthread_create(&t[0], NULL, Thread2, NULL); in Thread1()
22 pthread_create(&t[1], NULL, Thread3, NULL); in Thread1()
31 pthread_create(&t, NULL, Thread1, NULL); in main()
H A Dstatic_init6.cpp20 pthread_create(&t, 0, AsyncInit, (void*)(long)rand()); in CreateCache()
35 pthread_create(&t[0], 0, Thread1, 0); in main()
36 pthread_create(&t[1], 0, Thread1, 0); in main()
H A Dstatic_init5.cpp20 pthread_create(&t, 0, AsyncInit, (void*)(long)rand()); in CreateCache()
35 pthread_create(&t[0], 0, Thread1, 0); in main()
36 pthread_create(&t[1], 0, Thread1, 0); in main()
H A Dpthread_key.cpp29 pthread_create(&th, 0, thr, 0); in main()
33 pthread_create(&th[0], 0, thr, 0); in main()
34 pthread_create(&th[1], 0, thr, 0); in main()
H A Dbench_threads.cpp17 pthread_create(&th, nullptr, nop_thread, nullptr); in thread()
30 pthread_create(&th[j], nullptr, nop_thread, nullptr); in bench()
38 pthread_create(&th[j], nullptr, nop_thread, nullptr); in bench()
H A Dfork_multithreaded.cpp23 pthread_create(&th0[i], 0, sleeper, 0); in main()
27 pthread_create(&th1[i], 0, nop, 0); in main()
40 pthread_create(&th2[i], 0, nop, 0); in main()
H A Dmmap_stress.cpp30 if (pthread_create(&th[i], 0, SubWorker, 0)) in Worker1()
44 if (pthread_create(&th[i], 0, Worker1, 0)) in Worker()
57 if (pthread_create(&th[i], 0, Worker, 0)) in main()
H A Dfork_multithreaded3.cpp24 pthread_create(&th1, 0, racer, &x); in main()
25 pthread_create(&th2, 0, racer, &x); in main()
/llvm-project/compiler-rt/test/hwasan/TestCases/
H A Dprint-memory-usage.c57 pthread_create(&t1, NULL, T1, NULL); in main()
58 pthread_create(&t2, NULL, T1, NULL); in main()
59 pthread_create(&t3, NULL, T1, NULL); in main()
60 pthread_create(&t4, NULL, T4, NULL); in main()
H A Dthread-uaf.c49 pthread_create(&t1, NULL, Allocate, NULL); in main()
51 pthread_create(&t2, NULL, Deallocate, NULL); in main()
53 pthread_create(&t3, NULL, Use, NULL); in main()
H A Dverbose_threads.c19 pthread_create(&t, NULL, Empty, &t); in Empty()
26 pthread_create(&t, NULL, Empty, NULL); in main()
/llvm-project/clang/test/CodeGen/
H A Dcallback_pthread_create.c20 int pthread_create(pthread_t *, const pthread_attr_t *,
36 pthread_create(&MyFirstThread, 0, callee0, 0); in foo()
39 pthread_create(&MySecondThread, 0, callee1, (void *)&GlobalVar); in foo()
/llvm-project/compiler-rt/test/safestack/
H A Dpthread-stack-size.c32 if (pthread_create(&t3, NULL, wait_until, (void *)3)) in main()
34 if (pthread_create(&t1, &small_stack_attr, wait_until, (void *)1)) in main()
36 if (pthread_create(&t2, NULL, wait_until, (void *)2)) in main()
/llvm-project/lldb/test/API/macosx/thread-names/
H A Dmain.c29 pthread_create (&other_thread, NULL, second_thread, NULL); in main()
30 pthread_create (&other_thread, NULL, third_thread, NULL); in main()

12345678910>>...17