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

/bionic/libc/bionic/
H A Dgettid.cpp34 return __get_thread()->tid;
H A Dpthread_kill.cpp35 extern "C" int tgkill(int tgid, int tid, int sig);
46 pid_t tid = thread->tid; local
49 int rc = tgkill(getpid(), tid, sig);
H A Dpthread_join.cpp39 pid_t tid; local
57 tid = thread->tid;
58 tid_ptr = &thread->tid;
66 __futex_wait(tid_ptr, tid, NULL);
H A Dpthread_gettid_np.cpp33 return reinterpret_cast<pthread_internal_t*>(t)->tid;
H A Dpthread_getschedparam.cpp42 int rc = sched_getparam(thread->tid, param);
46 *policy = sched_getscheduler(thread->tid);
H A Dpthread_setname_np.cpp60 pid_t tid = 0; local
66 tid = thread->tid;
69 snprintf(comm_name, sizeof(comm_name), TASK_COMM_FMT, tid);
H A Dfork.cpp45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL);
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid));
H A Dpthread_rwlock.cpp135 if (__predict_false(__get_thread()->tid == rwlock->writer_thread_id)) {
170 int tid = __get_thread()->tid; local
171 if (__predict_false(tid == rwlock->writer_thread_id)) {
199 rwlock->writer_thread_id = tid;
229 int tid = __get_thread()->tid; local
233 rwlock->writer_thread_id = tid;
241 int tid = __get_thread()->tid; local
[all...]
H A Dpthread_detach.cpp47 if (thread->tid == 0) {
H A Dpthread_getcpuclockid.cpp39 // The tid is stored in the top bits, but negated.
40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3;
H A Dpthread_setschedparam.cpp42 int rc = sched_setscheduler(thread->tid, policy, param);
H A Dpthread_mutex.cpp48 * 31-16 tid owner thread's tid (recursive and errorcheck only)
158 * tid of the owning thread. Note that this works because the Linux
449 int mvalue, mtype, tid, shared; local
462 tid = __get_thread()->tid;
463 if ( tid == MUTEX_OWNER_FROM_BITS(mvalue) )
473 int newval = MUTEX_OWNER_TO_BITS(tid) | mtype | MUTEX_STATE_BITS_LOCKED_UNCONTENDED;
492 newval = MUTEX_OWNER_TO_BITS(tid) | mtype | MUTEX_STATE_BITS_LOCKED_CONTENDED;
531 int mvalue, mtype, tid, share local
583 int mvalue, mtype, tid, shared; local
653 pid_t tid = __get_thread()->tid; local
[all...]
H A Dlibc_init_common.cpp81 // Tell the kernel to clear our tid field when we exit, so we're like any other pthread.
82 // As a side-effect, this tells us our pid (which is the same as the main thread's tid).
83 main_thread.tid = __set_tid_address(&main_thread.tid);
84 main_thread.set_cached_pid(main_thread.tid);
H A Dpthread_internal.h49 pid_t tid; member in struct:pthread_internal_t
H A Dpthread_create.cpp85 if (sched_setscheduler(thread->tid, thread->attr.sched_policy, &param) == -1) {
223 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid));
H A Dlibc_logging.cpp502 uint16_t tid = gettid(); local
503 vec[1].iov_base = &tid;
504 vec[1].iov_len = sizeof(tid);
564 uint16_t tid = gettid(); local
565 vec[1].iov_base = &tid;
566 vec[1].iov_len = sizeof(tid);
H A Dndk_cruft.cpp224 extern "C" int tkill(pid_t tid, int sig) { argument
225 return syscall(__NR_tkill, tid, sig);
H A Dpthread_key.cpp221 if (t->tid == 0 || t->tls == NULL) {
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_l2tp.h29 __u32 tid; member in struct:xt_l2tp_info
/bionic/tests/
H A Dstack_protector_test.cpp48 pid_t tid = gettid(); local
51 printf("[thread %d] %%gs:0x14 = 0x%08x\n", tid, guard);
53 // Duplicate tid. gettid(2) bug? Seeing this would be very upsetting.
54 ASSERT_TRUE(tids.find(tid) == tids.end());
60 tids.insert(tid);
H A Dsched_test.cpp34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i); local
37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE)));
/bionic/libc/kernel/uapi/linux/
H A Di2o-dev.h62 unsigned int tid; member in struct:i2o_cmd_psetget
85 unsigned int tid; member in struct:i2o_html
97 unsigned int tid; member in struct:i2o_evt_id
204 __u32 tid:12; member in struct:_i2o_lct_entry
/bionic/linker/
H A Ddebugger.cpp42 extern "C" int tgkill(int tgid, int tid, int sig);
63 pid_t tid; member in struct:debugger_msg_t
179 "Fatal signal %d (%s)%s%s in tid %d (%s)",
226 // local socket but we need to tell it the tid of the crashing thread.
227 // debuggerd will be paranoid and verify that we sent a tid
231 msg.tid = gettid();
/bionic/libc/kernel/uapi/sound/
H A Dasound.h639 struct snd_timer_id tid; member in struct:snd_timer_ginfo
655 struct snd_timer_id tid; member in struct:snd_timer_gparams
662 struct snd_timer_id tid; member in struct:snd_timer_gstatus

Completed in 249 milliseconds