/bionic/libc/bionic/ |
D | pthread_join.cpp | 53 pid_t tid = thread->tid; in pthread_join() local 54 volatile int* tid_ptr = &thread->tid; in pthread_join() 61 __futex_wait(tid_ptr, tid, NULL); in pthread_join()
|
D | __libc_init_main_thread.cpp | 66 main_thread.tid = __set_tid_address(&main_thread.tid); in __libc_init_main_thread() 67 main_thread.set_cached_pid(main_thread.tid); in __libc_init_main_thread()
|
D | pthread_setname_np.cpp | 64 pid_t tid = thread->tid; in pthread_setname_np() local 67 snprintf(comm_name, sizeof(comm_name), TASK_COMM_FMT, tid); in pthread_setname_np()
|
D | pthread_kill.cpp | 35 extern "C" int tgkill(int tgid, int tid, int sig); 45 return (tgkill(getpid(), thread->tid, sig) == -1) ? errno : 0; in pthread_kill()
|
D | pthread_getschedparam.cpp | 42 int rc = sched_getparam(thread->tid, param); in pthread_getschedparam() 46 *policy = sched_getscheduler(thread->tid); in pthread_getschedparam()
|
D | fork.cpp | 45 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()
|
D | gettid.cpp | 34 return __get_thread()->tid; in gettid()
|
D | pthread_gettid_np.cpp | 32 return reinterpret_cast<pthread_internal_t*>(t)->tid; in pthread_gettid_np()
|
D | pthread_mutex.cpp | 434 pid_t tid = __get_thread()->tid; in __pthread_mutex_lock_with_timeout() local 435 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { in __pthread_mutex_lock_with_timeout() 453 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); in __pthread_mutex_lock_with_timeout() 472 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); in __pthread_mutex_lock_with_timeout() 544 pid_t tid = __get_thread()->tid; in pthread_mutex_unlock() local 545 if ( tid != atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed) ) { in pthread_mutex_unlock() 590 pid_t tid = __get_thread()->tid; in pthread_mutex_trylock() local 591 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { in pthread_mutex_trylock() 608 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); in pthread_mutex_trylock()
|
D | pthread_getcpuclockid.cpp | 40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3; in pthread_getcpuclockid()
|
D | pthread_setschedparam.cpp | 42 int rc = sched_setscheduler(thread->tid, policy, param); in pthread_setschedparam()
|
D | pthread_create.cpp | 100 if (sched_setscheduler(thread->tid, thread->attr.sched_policy, ¶m) == -1) { in __init_thread() 257 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); in pthread_create()
|
D | pthread_rwlock.cpp | 292 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedrdlock() 355 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); in __pthread_rwlock_trywrlock() 365 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedwrlock() 455 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { in pthread_rwlock_unlock()
|
D | libc_logging.cpp | 562 uint16_t tid = gettid(); in __libc_write_log() local 563 vec[1].iov_base = &tid; in __libc_write_log() 564 vec[1].iov_len = sizeof(tid); in __libc_write_log() 605 uint16_t tid = gettid(); in __libc_android_log_event() local 606 vec[1].iov_base = &tid; in __libc_android_log_event() 607 vec[1].iov_len = sizeof(tid); in __libc_android_log_event()
|
D | pthread_internal.h | 63 pid_t tid; variable
|
D | ndk_cruft.cpp | 229 int tkill(pid_t tid, int sig) { in tkill() argument 230 return syscall(__NR_tkill, tid, sig); in tkill()
|
D | pthread_attr.cpp | 209 if (thread->tid == getpid()) { in pthread_getattr_np()
|
/bionic/tests/ |
D | stack_protector_test.cpp | 43 pid_t tid = gettid(); in Check() local 46 printf("[thread %d] TLS stack guard = %p\n", tid, guard); in Check() 49 ASSERT_TRUE(tids.find(tid) == tids.end()); in Check() 60 tids.insert(tid); in Check()
|
D | utils.h | 98 static inline void WaitUntilThreadSleep(std::atomic<pid_t>& tid) { in WaitUntilThreadSleep() argument 99 while (tid == 0) { in WaitUntilThreadSleep() 102 std::string filename = android::base::StringPrintf("/proc/%d/stat", tid.load()); in WaitUntilThreadSleep()
|
D | pthread_test.cpp | 729 std::atomic<pid_t> tid; member 736 arg->tid = gettid(); in pthread_rwlock_wakeup_helper() 753 wakeup_arg.tid = 0; in test_pthread_rwlock_reader_wakeup_writer() 760 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_reader_wakeup_writer() 789 wakeup_arg.tid = 0; in test_pthread_rwlock_writer_wakeup_reader() 796 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_writer_wakeup_reader() 821 arg->tid = gettid(); in pthread_rwlock_wakeup_timeout_helper() 849 wakeup_arg.tid = 0; in TEST() 856 WaitUntilThreadSleep(wakeup_arg.tid); in TEST() 870 wakeup_arg.tid = 0; in TEST() [all …]
|
D | sched_test.cpp | 34 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/ |
D | xt_l2tp.h | 29 __u32 tid; member
|
/bionic/libc/kernel/uapi/linux/ |
D | i2o-dev.h | 62 unsigned int tid; member 85 unsigned int tid; member 97 unsigned int tid; member 204 __u32 tid : 12; member
|
/bionic/linker/ |
D | debugger.cpp | 46 extern "C" int tgkill(int tgid, int tid, int sig); 70 pid_t tid; member 239 msg.tid = gettid(); in send_debuggerd_packet()
|
/bionic/libc/kernel/uapi/sound/ |
D | asound.h | 669 struct snd_timer_id tid; member 685 struct snd_timer_id tid; member 692 struct snd_timer_id tid; member
|