| /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/thread/ |
| threadgroup.d | 9 * Source: $(DRUNTIMESRC core/thread/osthread.d) 12 module core.thread.threadgroup; 14 import core.thread.osthread; 23 * Creates and starts a new Thread object that executes fn and adds it to 27 * fn = The thread function. 30 * A reference to the newly created thread. 32 final Thread create(void function() fn) 34 Thread t = new Thread(fn).start(); 45 * Creates and starts a new Thread object that executes dg and adds it t [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/ |
| dd_rtl.h | 27 struct Thread { 35 Thread *thr; 37 Callback(Thread *thr); 58 void ThreadInit(Thread *thr); 59 void ThreadDestroy(Thread *thr); 61 void MutexBeforeLock(Thread *thr, uptr m, bool writelock); 62 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock); 63 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock); 64 void MutexDestroy(Thread *thr, uptr m);
|
| dd_rtl.cc | 22 static u32 CurrentStackTrace(Thread *thr, uptr skip) { 32 static void PrintStackTrace(Thread *thr, u32 stk) { 39 static void ReportDeadlock(Thread *thr, DDReport *rep) { 46 Printf("Thread %d locks mutex %llu while holding mutex %llu:\n", 58 Callback::Callback(Thread *thr) 100 void ThreadInit(Thread *thr) { 107 void ThreadDestroy(Thread *thr) { 112 void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { 125 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { 138 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) [all...] |
| /src/external/cddl/dtracetoolkit/dist/Code/Java/ |
| Func_abc.java | 5 Thread.currentThread().sleep(1000); 11 Thread.currentThread().sleep(1000); 18 Thread.currentThread().sleep(1000);
|
| /src/external/gpl3/gcc/dist/libsanitizer/hwasan/ |
| hwasan_thread_list.h | 36 // single thread-local word as 39 // said thread-local word. 82 // * a Thread object at offset ring_buffer_size_. 85 RoundUpTo(ring_buffer_size_ + sizeof(Thread), ring_buffer_size_ * 2); 88 Thread *CreateCurrentThread(const Thread::InitState *state = nullptr) 90 Thread *t = nullptr; 100 internal_memset((void *)start, 0, ring_buffer_size_ + sizeof(Thread)); 113 void DontNeedThread(Thread *t) { 118 void RemoveThreadFromLiveList(Thread *t [all...] |
| hwasan_fuchsia.cpp | 28 // used to always find the hwasan thread object associated with the current 29 // running thread. 58 // These are known parameters passed to the hwasan runtime on thread creation. 59 struct Thread::InitState { 63 static void FinishThreadInitialization(Thread *thread); 77 // Create the hwasan thread object for the current (main) thread. Stack info 78 // for this thread is known from information passed via 80 const Thread::InitState state = 118 Thread *thread = static_cast<Thread *>(hook); local 134 Thread *thread = static_cast<Thread *>(hook); local 153 Thread *thread = static_cast<Thread *>(hook); local [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/hwasan/ |
| hwasan_thread_list.h | 36 // single thread-local word as 39 // said thread-local word. 82 // * a Thread object at offset ring_buffer_size_. 85 RoundUpTo(ring_buffer_size_ + sizeof(Thread), ring_buffer_size_ * 2); 88 Thread *CreateCurrentThread(const Thread::InitState *state = nullptr) { 89 Thread *t = nullptr; 99 internal_memset((void *)start, 0, ring_buffer_size_ + sizeof(Thread)); 112 void DontNeedThread(Thread *t) { 117 void RemoveThreadFromLiveList(Thread *t) [all...] |
| hwasan_fuchsia.cpp | 25 // used to always find the hwasan thread object associated with the current 26 // running thread. 55 // These are known parameters passed to the hwasan runtime on thread creation. 56 struct Thread::InitState { 60 static void FinishThreadInitialization(Thread *thread); 74 // Create the hwasan thread object for the current (main) thread. Stack info 75 // for this thread is known from information passed via 77 const Thread::InitState state = 115 Thread *thread = static_cast<Thread *>(hook); local 131 Thread *thread = static_cast<Thread *>(hook); local 150 Thread *thread = static_cast<Thread *>(hook); local [all...] |
| hwasan_thread.cpp | 28 void Thread::InitRandomState() { 38 void Thread::Init(uptr stack_buffer_start, uptr stack_buffer_size, 52 // be initialized before we enter the thread itself, so we will instead call 59 void Thread::InitStackRingBuffer(uptr stack_buffer_start, 63 // The following implicitly sets (this) as the current thread. 81 Printf("sizeof(Thread): %zd sizeof(HeapRB): %zd sizeof(StackRB): %zd\n", 82 sizeof(Thread), heap_allocations_->SizeInBytes(), 89 void Thread::ClearShadowForThreadStackAndTLS() { 96 void Thread::Destroy() { 104 // Unregister this as the current thread [all...] |
| /src/sys/external/bsd/acpica/dist/executer/ |
| exmutex.c | 57 ACPI_THREAD_STATE *Thread); 76 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; 79 if (!Thread) 106 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; 116 * Thread - Current executing thread object 127 ACPI_THREAD_STATE *Thread) 132 ListHead = Thread->AcquiredMutexList; 148 Thread->AcquiredMutexList = ObjDesc; 158 * ThreadId - Current thread stat [all...] |
| /src/external/gpl3/gcc.old/dist/libphobos/testsuite/libphobos.gc/ |
| startbackgc.d | 4 import core.thread : Thread; 9 new Thread({
|
| forkgc2.d | 5 import core.thread : Thread; 10 new Thread({
|
| /src/external/gpl3/gcc.old/dist/libphobos/testsuite/libphobos.allocations/ |
| tls_gc_integration.d | 1 import core.memory, core.thread, core.volatile; 33 Thread.sleep(10.msecs); 39 Thread[] threads; 42 auto t = new Thread(&runThread); 48 foreach (thread; threads) 49 thread.join();
|
| /src/external/apache2/llvm/dist/llvm/lib/Support/Unix/ |
| Threading.inc | 88 // Construct and execute the thread. 89 pthread_t Thread; 90 if ((errnum = ::pthread_create(&Thread, &Attr, ThreadFunc, Arg)) != 0) 94 // Wait for the thread 95 if ((errnum = ::pthread_join(Thread, nullptr)) != 0) { 99 if ((errnum = ::pthread_detach(Thread)) != 0) { 107 // Calling "mach_thread_self()" bumps the reference count on the thread 160 // terminated, but additionally the end of a long thread name will usually 262 // When setting a thread into background state the scheduling priority is set 264 // throttled for any sockets the thread opens after going into backgroun [all...] |
| /src/sys/external/bsd/acpica/dist/dispatcher/ |
| dsdebug.c | 138 ACPI_THREAD_STATE *Thread; 164 * If there is no Thread, we are not actually executing a method. 168 Thread = WalkState->Thread; 169 if (!Thread) 186 NextWalkState = Thread->WalkStateList;
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| malloc_stress_transfer_test.cc | 1 #include <thread> 10 void Thread() { 12 // std::cerr << "Thread starting, sp = " << &sp << std::endl; 29 // Thread(); 31 std::thread *Threads[kNumThreads]; 32 for (auto &T : Threads) T = new std::thread(&Thread);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/ |
| start_many_threads.cc | 19 void* Thread(void *unused) { 40 int status = pthread_create(&t[i], 0, Thread, (void*)i);
|
| /src/tests/usr.bin/c++/ |
| t_tsan_data_race.sh | 36 atf_set "descr" "Test thread sanitizer for data race condition" 43 atf_set "descr" "Test thread sanitizer for data race with profiling option" 49 atf_set "descr" "Test thread sanitizer for data race with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for data race with position independent execution (PIE) flag" 64 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 68 pthread_create(&t, NULL, Thread, NULL); 76 c++ -fsanitize=thread -o test test.cc 86 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 90 pthread_create(&t, NULL, Thread, NULL); 98 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_heap_use_after_free.sh | 53 atf_set "descr" "Test thread sanitizer for use-after-free condition" 60 atf_set "descr" "Test thread sanitizer for use-after-free with profiling option" 66 atf_set "descr" "Test thread sanitizer for use-after-free with position independent code (PIC) flag" 72 atf_set "descr" "Test thread sanitizer for use-after-free with position independent execution (PIE) flag" 84 void *Thread(void *a) { 94 pthread_create(&t, NULL, Thread, NULL); 102 c++ -fsanitize=thread -o test test.cc 115 void *Thread(void *a) { 125 pthread_create(&t, NULL, Thread, NULL); 133 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_locked_mutex_destroy.sh | 37 atf_set "descr" "Test thread sanitizer for destroying locked mutex condition" 44 atf_set "descr" "Test thread sanitizer for destroying locked mutex with profiling option" 50 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent code (PIC) flag" 56 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent execution (PIE) flag" 68 void *Thread(void *a) { 78 pthread_create(&t, NULL, Thread, NULL); 86 c++ -fsanitize=thread -o test test.cc 99 void *Thread(void *a) { 109 pthread_create(&t, NULL, Thread, NULL); 117 c++ -fsanitize=thread -static -o test -pg test.c [all...] |
| t_tsan_thread_leak.sh | 36 atf_set "descr" "Test thread sanitizer for thread leak condition" 43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option" 49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag" 67 void *Thread(void *a) { 75 pthread_create(&t, NULL, Thread, NULL) [all...] |
| /src/tests/usr.bin/cc/ |
| t_tsan_data_race.sh | 36 atf_set "descr" "Test thread sanitizer for data race condition" 43 atf_set "descr" "Test thread sanitizer for data race with profiling option" 49 atf_set "descr" "Test thread sanitizer for data race with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for data race with position independent execution (PIE) flag" 64 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 68 pthread_create(&t, NULL, Thread, NULL); 76 cc -fsanitize=thread -o test test.c 86 void *Thread(void *a) { pthread_barrier_wait(&barrier); GlobalData = 42; return 0; } 90 pthread_create(&t, NULL, Thread, NULL); 98 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_heap_use_after_free.sh | 36 atf_set "descr" "Test thread sanitizer for use-after-free condition" 43 atf_set "descr" "Test thread sanitizer for use-after-free with profiling option" 49 atf_set "descr" "Test thread sanitizer for use-after-free with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for use-after-free with position independent execution (PIE) flag" 67 void *Thread(void *a) { 77 pthread_create(&t, NULL, Thread, NULL); 85 cc -fsanitize=thread -o test test.c 98 void *Thread(void *a) { 108 pthread_create(&t, NULL, Thread, NULL); 116 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_locked_mutex_destroy.sh | 36 atf_set "descr" "Test thread sanitizer for destroying locked mutex condition" 43 atf_set "descr" "Test thread sanitizer for destroying locked mutex with profiling option" 49 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for destroying locked mutex with position independent execution (PIE) flag" 67 void *Thread(void *a) { 77 pthread_create(&t, NULL, Thread, NULL); 85 cc -fsanitize=thread -o test test.c 98 void *Thread(void *a) { 108 pthread_create(&t, NULL, Thread, NULL); 116 cc -fsanitize=thread -static -o test -pg test. [all...] |
| t_tsan_thread_leak.sh | 36 atf_set "descr" "Test thread sanitizer for thread leak condition" 43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option" 49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag" 55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag" 67 void *Thread(void *a) { 75 pthread_create(&t, NULL, Thread, NULL) [all...] |