Searched refs:tid (Results 1 - 25 of 82) sorted by relevance

1234

/haiku-buildtools/gcc/libgomp/testsuite/libgomp.c/
H A Domp_hello.c19 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 Domp_workshare2.c18 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 Domp_workshare1.c19 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 Domp_workshare3.c22 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 Domp_orphan.c19 int i,tid; local
21 tid = omp_get_thread_num();
26 printf(" tid= %d i=%d\n",tid,i);
H A Domp_workshare4.c21 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 Daffinity.c37 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 Dlsan.cc46 u32 tid = ThreadCreate(0, 0, true); local
47 CHECK_EQ(tid, 0);
48 ThreadStart(tid, GetTid());
49 SetCurrentThread(tid);
H A Dlsan_thread.h22 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 Dlsan_thread.cc27 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 Dsections-1.C18 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 Dpthread2.cc46 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 Dpthread3.cc43 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 Dsanitizer_thread_registry.cc17 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 Dsanitizer_thread_registry.h34 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 Dspu_mfcio.h192 #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 Dlib-89.c20 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 Dlib-92.c19 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 Dsubr.h32 delay2 (unsigned long *d_o, unsigned long delay, unsigned long tid) argument
43 d_o[0] = tid;
H A Dlib-90.c23 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 Dsplit-2.c45 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 D12658_thread-2.cc53 pthread_t tid[max_thread_count]; local
59 pthread_create(&tid[i], 0, thread_main, 0);
62 pthread_join(tid[i], 0);
H A D12658_thread-1.cc60 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 Dtsan_clock.h51 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 Dtsan_rtl_thread.cc23 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...]

Completed in 216 milliseconds

1234