Searched refs:oldtype (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/concurrency/ |
| H A D | thread-canceltype-asynchronous.cpp | 11 int pthread_setcanceltype(int type, int *oldtype); 14 int result, oldtype; in main() local 16 if ((result = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype)) != 0) { in main() 21 if ((result = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype)) != 0) { in main() 29 int result, oldtype; in f1() local 31 if ((result = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype)) != 0) { in f1() 36 if ((result = pthread_setcanceltype(ASYNCHR, &oldtype)) != 0) { in f1() 45 int result, oldtype; in f2() local 47 if ((result = pthread_setcanceltype(type, &oldtype)) != 0) { in f2()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | pthread_setcancelstate.cpp | 9 int oldtype; in main() local 14 res = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype); in main() 16 __msan_check_mem_is_initialized(&oldtype, sizeof(oldtype)); in main()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/concurrency/ |
| H A D | thread-canceltype-asynchronous.rst | 15 pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 6816 INTERCEPTOR(int, pthread_setcanceltype, int type, int *oldtype) { 6818 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcanceltype, type, oldtype); 6819 int res = REAL(pthread_setcanceltype)(type, oldtype); 6820 if (res == 0 && oldtype != nullptr) 6821 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldtype, sizeof(*oldtype));
|