/bionic/libc/bionic/ |
H A D | gettid.cpp | 34 return __get_thread()->tid;
|
H A D | pthread_gettid_np.cpp | 32 return reinterpret_cast<pthread_internal_t*>(t)->tid;
|
H A D | pthread_join.cpp | 53 pid_t tid = thread->tid; local 54 volatile int* tid_ptr = &thread->tid; 61 __futex_wait(tid_ptr, tid, NULL);
|
H A D | pthread_getschedparam.cpp | 42 int rc = sched_getparam(thread->tid, param); 46 *policy = sched_getscheduler(thread->tid);
|
H A 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;
|
H A D | __libc_init_main_thread.cpp | 64 // Tell the kernel to clear our tid field when we exit, so we're like any other pthread. 65 // As a side-effect, this tells us our pid (which is the same as the main thread's tid). 66 main_thread.tid = __set_tid_address(&main_thread.tid); 67 main_thread.set_cached_pid(main_thread.tid);
|
H A D | pthread_setname_np.cpp | 64 pid_t tid = thread->tid; local 67 snprintf(comm_name, sizeof(comm_name), TASK_COMM_FMT, tid);
|
H A D | fork.cpp | 45 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 D | pthread_getcpuclockid.cpp | 39 // The tid is stored in the top bits, but negated. 40 clockid_t result = ~static_cast<clockid_t>(thread->tid) << 3;
|
H A D | pthread_setschedparam.cpp | 42 int rc = sched_setscheduler(thread->tid, policy, param);
|
H A D | pthread_mutex.cpp | 125 * The owner_tid is used only in recursive and errorcheck mutex to hold the mutex owner thread tid. 434 pid_t tid = __get_thread()->tid; local 435 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { 453 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); 472 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); 544 pid_t tid = __get_thread()->tid; local 545 if ( tid != atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed) ) { 590 pid_t tid local [all...] |
H A D | pthread_internal.h | 63 pid_t tid; member in class:pthread_internal_t
|
H A D | pthread_rwlock.cpp | 292 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { 355 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); 365 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { 455 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) {
|
H A D | pthread_create.cpp | 100 if (sched_setscheduler(thread->tid, thread->attr.sched_policy, ¶m) == -1) { 257 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid));
|
H A D | libc_logging.cpp | 562 uint16_t tid = gettid(); local 563 vec[1].iov_base = &tid; 564 vec[1].iov_len = sizeof(tid); 605 uint16_t tid = gettid(); local 606 vec[1].iov_base = &tid; 607 vec[1].iov_len = sizeof(tid);
|
H A D | ndk_cruft.cpp | 229 int tkill(pid_t tid, int sig) { argument 230 return syscall(__NR_tkill, tid, sig);
|
H A D | pthread_attr.cpp | 209 if (thread->tid == getpid()) {
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | xt_l2tp.h | 29 __u32 tid; member in struct:xt_l2tp_info
|
/bionic/tests/ |
H A D | stack_protector_test.cpp | 43 pid_t tid = gettid(); local 46 printf("[thread %d] TLS stack guard = %p\n", tid, guard); 48 // Duplicate tid. gettid(2) bug? Seeing this would be very upsetting. 49 ASSERT_TRUE(tids.find(tid) == tids.end()); 60 tids.insert(tid);
|
H A D | utils.h | 98 static inline void WaitUntilThreadSleep(std::atomic<pid_t>& tid) { argument 99 while (tid == 0) { 102 std::string filename = android::base::StringPrintf("/proc/%d/stat", tid.load());
|
H A D | pthread_test.cpp | 729 std::atomic<pid_t> tid; member in struct:RwlockWakeupHelperArg 736 arg->tid = gettid(); 753 wakeup_arg.tid = 0; 760 WaitUntilThreadSleep(wakeup_arg.tid); 789 wakeup_arg.tid = 0; 796 WaitUntilThreadSleep(wakeup_arg.tid); 821 arg->tid = gettid(); 849 wakeup_arg.tid = 0; 856 WaitUntilThreadSleep(wakeup_arg.tid); 870 wakeup_arg.tid 890 std::atomic<pid_t>& tid; member in struct:RwlockKindTestHelper::ThreadArg 892 ThreadArg(RwlockKindTestHelper* helper, std::atomic<pid_t>& tid) argument 908 CreateWriterThread(pthread_t& thread, std::atomic<pid_t>& tid) argument 915 CreateReaderThread(pthread_t& thread, std::atomic<pid_t>& tid) argument 1599 std::atomic<pid_t> tid; member in class:MutexWakeupHelper 1879 std::atomic<int> tid; member in struct:BarrierDestroyTestArg [all...] |
H A D | sched_test.cpp | 34 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 D | i2o-dev.h | 62 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 D | debugger.cpp | 46 extern "C" int tgkill(int tgid, int tid, int sig); 70 pid_t tid; member in struct:debugger_msg_t 179 "Fatal signal %d (%s)%s%s in tid %d (%s)", 234 // local socket but we need to tell it the tid of the crashing thread. 235 // debuggerd will be paranoid and verify that we sent a tid 239 msg.tid = gettid();
|
/bionic/libc/kernel/uapi/sound/ |
H A D | asound.h | 669 struct snd_timer_id tid; member in struct:snd_timer_ginfo 685 struct snd_timer_id tid; member in struct:snd_timer_gparams 692 struct snd_timer_id tid; member in struct:snd_timer_gstatus
|