/haiku-buildtools/gcc/libgomp/testsuite/libgomp.c/ |
H A D | omp_hello.c | 19 int nthreads, tid; local 22 #pragma omp parallel private(nthreads, tid) 26 tid = omp_get_thread_num(); 27 printf("Hello World from thread = %d\n", tid); 30 if (tid == 0)
|
H A D | omp_workshare2.c | 18 int i, nthreads, tid; local 25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid) 27 tid = omp_get_thread_num(); 28 if (tid == 0) 33 printf("Thread %d starting...\n",tid); 39 printf("Thread %d doing section 1\n",tid); 43 printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); 49 printf("Thread %d doing section 2\n",tid); 53 printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); 59 printf("Thread %d done.\n",tid); [all...] |
H A D | omp_workshare1.c | 19 int nthreads, tid, i, chunk; local 27 #pragma omp parallel shared(a,b,c,nthreads,chunk) private(i,tid) 29 tid = omp_get_thread_num(); 30 if (tid == 0) 35 printf("Thread %d starting...\n",tid); 41 printf("Thread %d: c[%d]= %f\n",tid,i,c[i]);
|
H A D | omp_workshare3.c | 22 int i, chunk, tid; local 32 private(i,tid) \ 35 tid = omp_get_thread_num(); 39 printf("tid= %d i= %d c[i]= %f\n", tid, i, c[i]);
|
H A D | omp_orphan.c | 19 int i,tid; local 21 tid = omp_get_thread_num(); 26 printf(" tid= %d i=%d\n",tid,i);
|
H A D | omp_workshare4.c | 21 int i, chunk, tid; local 33 private(i,tid) \ 41 tid = omp_get_thread_num(); 45 printf("tid= %d i= %d c[i]= %f\n", tid, i, c[i]);
|
/haiku-buildtools/gcc/gcc/ada/ |
H A D | affinity.c | 37 extern int __gnat_set_affinity (int tid, unsigned cpu); 38 extern int __gnat_set_affinity_mask (int tid, unsigned mask); 41 __gnat_set_affinity (int tid, unsigned cpu) argument 47 return taskCpuAffinitySet (tid, cpuset); 51 __gnat_set_affinity_mask (int tid, unsigned mask) argument 62 return taskCpuAffinitySet (tid, cpuset);
|
/haiku-buildtools/gcc/libsanitizer/lsan/ |
H A D | lsan.cc | 46 u32 tid = ThreadCreate(0, 0, true); local 47 CHECK_EQ(tid, 0); 48 ThreadStart(tid, GetTid()); 49 SetCurrentThread(tid);
|
H A D | lsan_thread.h | 22 explicit ThreadContext(int tid); 39 void ThreadStart(u32 tid, uptr os_id); 41 u32 ThreadCreate(u32 tid, uptr uid, bool detached); 42 void ThreadJoin(u32 tid); 46 void SetCurrentThread(u32 tid);
|
H A D | lsan_thread.cc | 27 static ThreadContextBase *CreateThreadContext(u32 tid) { argument 29 return new(mem) ThreadContext(tid); 45 void SetCurrentThread(u32 tid) { argument 46 current_thread_tid = tid; 49 ThreadContext::ThreadContext(int tid) argument 50 : ThreadContextBase(tid), 83 void ThreadStart(u32 tid, uptr os_id) { argument 87 GetThreadStackAndTls(tid == 0, &args.stack_begin, &stack_size, 92 thread_registry->StartThread(tid, os_id, &args); 119 void ThreadJoin(u32 tid) { argument [all...] |
/haiku-buildtools/gcc/libgomp/testsuite/libgomp.c++/ |
H A D | sections-1.C | 18 int i, nthreads, tid; local 25 #pragma omp parallel shared(a,b,nthreads) private(c,i,tid) 27 tid = omp_get_thread_num(); 28 if (tid == 0) 33 printf("Thread %d starting...\n",tid); 39 printf("Thread %d doing section 1\n",tid); 43 printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); 49 printf("Thread %d doing section 2\n",tid); 53 printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); 59 printf("Thread %d done.\n",tid); [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/27_io/basic_ofstream/ |
H A D | pthread2.cc | 46 pthread_t tid[max_thread_count]; local 53 pthread_create (&tid[i], 0, thread_main, 0); 56 pthread_join (tid[i], 0);
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/27_io/basic_ostringstream/ |
H A D | pthread3.cc | 43 pthread_t tid[max_thread_count]; local 50 pthread_create (&tid[i], 0, thread_main, 0); 53 pthread_join (tid[i], 0);
|
/haiku-buildtools/gcc/libsanitizer/sanitizer_common/ |
H A D | sanitizer_thread_registry.cc | 17 ThreadContextBase::ThreadContextBase(u32 tid) argument 18 : tid(tid), unique_id(0), reuse_count(), os_id(0), user_id(0), 72 // Parent tid makes no sense for the main thread. 73 if (tid != 0) 122 u32 tid = kUnknownTid; local 125 tid = tctx->tid; 127 // Allocate new thread context and tid. 128 tid 198 SetThreadName(u32 tid, const char *name) argument 219 DetachThread(u32 tid, void *arg) argument 237 JoinThread(u32 tid, void *arg) argument 250 FinishThread(u32 tid) argument 267 StartThread(u32 tid, uptr os_id, void *arg) argument [all...] |
H A D | sanitizer_thread_registry.h | 34 explicit ThreadContextBase(u32 tid); 37 const u32 tid; // Thread ID. Main thread should have tid = 0. member in class:__sanitizer::ThreadContextBase 39 u32 reuse_count; // Number of times this tid was reused. 72 typedef ThreadContextBase* (*ThreadContextFactory)(u32 tid); 88 ThreadContextBase *GetThreadLocked(u32 tid) { argument 89 DCHECK_LT(tid, n_contexts_); 90 return threads_[tid]; 110 void SetThreadName(u32 tid, const char *name); 112 void DetachThread(u32 tid, voi [all...] |
/haiku-buildtools/gcc/gcc/config/spu/ |
H A D | spu_mfcio.h | 192 #define mfc_put( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CMD_WORD(tid,rid,MFC_PUT_CMD)) 193 #define mfc_putf( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CMD_WORD(tid,rid,MFC_PUTF_CMD)) 194 #define mfc_putb( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CMD_WORD(tid,rid,MFC_PUTB_CMD)) 195 #define mfc_get( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CMD_WORD(tid,rid,MFC_GET_CMD)) 196 #define mfc_getf( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CMD_WORD(tid,ri [all...] |
/haiku-buildtools/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/ |
H A D | lib-89.c | 20 int tid; local 24 tid = (int) (long) arg; 36 p[i] = tid; 39 x[tid] = p; 41 d_x[tid] = acc_copyin (p, N); 51 pthread_t *tid; local 64 tid = (pthread_t *) malloc (NTHREADS * sizeof (pthread_t)); 68 if (pthread_create (&tid[i], &attr, &test, (void *) (unsigned long) (i)) 80 if (pthread_join (tid[i], &res) != 0)
|
H A D | lib-92.c | 19 int tid; local 23 tid = (int) (long) arg; 31 acc_copyout (x[tid], N); 33 p = x[tid]; 49 pthread_t *tid; local 79 tid = (pthread_t *) malloc (NTHREADS * sizeof (pthread_t)); 85 if (pthread_create (&tid[i], &attr, &test, (void *) (unsigned long) (i)) 97 if (pthread_join (tid[i], &res) != 0)
|
H A D | subr.h | 32 delay2 (unsigned long *d_o, unsigned long delay, unsigned long tid) argument 43 d_o[0] = tid;
|
H A D | lib-90.c | 23 int tid; local 27 tid = (int) (long) arg; 39 p[i] = tid; 42 x[tid] = p; 44 d_x[tid] = acc_copyin (p, N); 56 pthread_t *tid; local 68 tid = (pthread_t *) malloc (NTHREADS * sizeof (pthread_t)); 82 if (pthread_create (&tid[i], &attr, &test, (void *) (unsigned long) (i)) 94 if (pthread_join (tid[i], &res) != 0)
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | split-2.c | 45 pthread_t tid; local 48 i = pthread_create (&tid, NULL, thread_routine, NULL); 51 i = pthread_join (tid, &dummy);
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/22_locale/locale/cons/ |
H A D | 12658_thread-2.cc | 53 pthread_t tid[max_thread_count]; local 59 pthread_create(&tid[i], 0, thread_main, 0); 62 pthread_join(tid[i], 0);
|
H A D | 12658_thread-1.cc | 60 pthread_t tid[max_thread_count]; local 63 pthread_create (&tid[i], 0, thread_main, 0); 66 pthread_join (tid[i], 0);
|
/haiku-buildtools/gcc/libsanitizer/tsan/ |
H A D | tsan_clock.h | 51 u64 get(unsigned tid) const { 52 return elem(tid).epoch; 75 ClockElem &elem(unsigned tid) const; 83 explicit ThreadClock(unsigned tid, unsigned reused = 0); 85 u64 get(unsigned tid) const { 86 DCHECK_LT(tid, kMaxTidInClock); 87 return clk_[tid].epoch; 90 void set(unsigned tid, u64 v);
|
H A D | tsan_rtl_thread.cc | 23 ThreadContext::ThreadContext(int tid) argument 24 : ThreadContextBase(tid) 53 if (tid == 0) 67 FlushUnneededShadowMemory(GetThreadTrace(tid), TraceSize() * sizeof(Event)); 68 //!!! FlushUnneededShadowMemory(GetThreadTraceHeader(tid), sizeof(Trace)); 91 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count, 94 thr->shadow_stack = &ThreadTrace(thr->tid)->shadow_stack[0]; 123 tid, (uptr)epoch0, args->stk_addr, args->stk_size, 174 if (tctx->tid == 0) { 178 " created at:\n", tctx->tid, tct 229 int tid = ctx->thread_registry->CreateThread(uid, detached, thr->tid, &args); local 235 ThreadStart(ThreadState *thr, int tid, uptr os_id) argument 304 ThreadJoin(ThreadState *thr, uptr pc, int tid) argument 311 ThreadDetach(ThreadState *thr, uptr pc, int tid) argument [all...] |