Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_kill.cpp35 extern "C" int tgkill(int tgid, int tid, int sig);
46 pid_t tid = thread->tid; in pthread_kill() local
49 int rc = tgkill(getpid(), tid, sig); in pthread_kill()
Dpthread_join.cpp39 pid_t tid; in pthread_join() local
57 tid = thread->tid; in pthread_join()
58 tid_ptr = &thread->tid; in pthread_join()
66 __futex_wait(tid_ptr, tid, NULL); in pthread_join()
Dpthread_setname_np.cpp60 pid_t tid = 0; in pthread_setname_np() local
66 tid = thread->tid; in pthread_setname_np()
69 snprintf(comm_name, sizeof(comm_name), TASK_COMM_FMT, tid); in pthread_setname_np()
Dpthread_rwlock.cpp135 if (__predict_false(__get_thread()->tid == rwlock->writer_thread_id)) { in __pthread_rwlock_timedrdlock()
170 int tid = __get_thread()->tid; in __pthread_rwlock_timedwrlock() local
171 if (__predict_false(tid == rwlock->writer_thread_id)) { in __pthread_rwlock_timedwrlock()
199 rwlock->writer_thread_id = tid; in __pthread_rwlock_timedwrlock()
229 int tid = __get_thread()->tid; in pthread_rwlock_trywrlock() local
233 rwlock->writer_thread_id = tid; in pthread_rwlock_trywrlock()
241 int tid = __get_thread()->tid; in pthread_rwlock_unlock() local
249 if (rwlock->writer_thread_id != tid) { in pthread_rwlock_unlock()
Dpthread_mutex.cpp449 int mvalue, mtype, tid, shared; in pthread_mutex_lock() local
462 tid = __get_thread()->tid; in pthread_mutex_lock()
463 if ( tid == MUTEX_OWNER_FROM_BITS(mvalue) ) in pthread_mutex_lock()
473 int newval = MUTEX_OWNER_TO_BITS(tid) | mtype | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in pthread_mutex_lock()
492 newval = MUTEX_OWNER_TO_BITS(tid) | mtype | MUTEX_STATE_BITS_LOCKED_CONTENDED; in pthread_mutex_lock()
531 int mvalue, mtype, tid, shared; in pthread_mutex_unlock() local
544 tid = __get_thread()->tid; in pthread_mutex_unlock()
545 if ( tid != MUTEX_OWNER_FROM_BITS(mvalue) ) in pthread_mutex_unlock()
583 int mvalue, mtype, tid, shared; in pthread_mutex_trylock() local
603 tid = __get_thread()->tid; in pthread_mutex_trylock()
[all …]
Dpthread_getschedparam.cpp42 int rc = sched_getparam(thread->tid, param); in pthread_getschedparam()
46 *policy = sched_getscheduler(thread->tid); in pthread_getschedparam()
Dfork.cpp45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); in fork()
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); in fork()
Dgettid.cpp34 return __get_thread()->tid; in gettid()
Dlibc_init_common.cpp83 main_thread.tid = __set_tid_address(&main_thread.tid); in __libc_init_tls()
84 main_thread.set_cached_pid(main_thread.tid); in __libc_init_tls()
Dpthread_gettid_np.cpp33 return reinterpret_cast<pthread_internal_t*>(t)->tid; in pthread_gettid_np()
Dpthread_getcpuclockid.cpp40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3; in pthread_getcpuclockid()
Dpthread_setschedparam.cpp42 int rc = sched_setscheduler(thread->tid, policy, param); in pthread_setschedparam()
Dpthread_detach.cpp47 if (thread->tid == 0) { in pthread_detach()
Dpthread_create.cpp85 if (sched_setscheduler(thread->tid, thread->attr.sched_policy, &param) == -1) { in __init_thread()
223 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); in pthread_create()
Dpthread_internal.h49 pid_t tid; member
Dlibc_logging.cpp502 uint16_t tid = gettid(); in __libc_write_log() local
503 vec[1].iov_base = &tid; in __libc_write_log()
504 vec[1].iov_len = sizeof(tid); in __libc_write_log()
564 uint16_t tid = gettid(); in __libc_android_log_event() local
565 vec[1].iov_base = &tid; in __libc_android_log_event()
566 vec[1].iov_len = sizeof(tid); in __libc_android_log_event()
Dndk_cruft.cpp224 extern "C" int tkill(pid_t tid, int sig) { in tkill() argument
225 return syscall(__NR_tkill, tid, sig); in tkill()
Dpthread_key.cpp221 if (t->tid == 0 || t->tls == NULL) { in pthread_key_delete()
/bionic/tests/
Dstack_protector_test.cpp48 pid_t tid = gettid(); in Check() local
51 printf("[thread %d] %%gs:0x14 = 0x%08x\n", tid, guard); in Check()
54 ASSERT_TRUE(tids.find(tid) == tids.end()); in Check()
60 tids.insert(tid); in Check()
Dsched_test.cpp34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i); in TEST() local
37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE))); in TEST()
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_l2tp.h29 __u32 tid; member
/bionic/linker/
Ddebugger.cpp42 extern "C" int tgkill(int tgid, int tid, int sig);
63 pid_t tid; member
231 msg.tid = gettid(); in send_debuggerd_packet()
/bionic/libc/kernel/uapi/linux/
Di2o-dev.h62 unsigned int tid; member
85 unsigned int tid; member
97 unsigned int tid; member
204 __u32 tid:12; member
/bionic/libc/kernel/uapi/sound/
Dasound.h639 struct snd_timer_id tid; member
655 struct snd_timer_id tid; member
662 struct snd_timer_id tid; member
/bionic/libc/
DSYSCALLS.TXT60 int tgkill(pid_t tgid, pid_t tid, int sig) all