Home
last modified time | relevance | path

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

12

/bionic/libc/bionic/
Dpthread_join.cpp53 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.cpp66 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()
Dpthread_setname_np.cpp64 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()
Dpthread_kill.cpp35 extern "C" int tgkill(int tgid, int tid, int sig);
45 return (tgkill(getpid(), thread->tid, sig) == -1) ? errno : 0; in pthread_kill()
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()
Dpthread_gettid_np.cpp32 return reinterpret_cast<pthread_internal_t*>(t)->tid; in pthread_gettid_np()
Dpthread_mutex.cpp434 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()
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_create.cpp100 if (sched_setscheduler(thread->tid, thread->attr.sched_policy, &param) == -1) { in __init_thread()
257 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); in pthread_create()
Dpthread_rwlock.cpp292 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()
Dlibc_logging.cpp562 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()
Dpthread_internal.h63 pid_t tid; variable
Dndk_cruft.cpp229 int tkill(pid_t tid, int sig) { in tkill() argument
230 return syscall(__NR_tkill, tid, sig); in tkill()
Dpthread_attr.cpp209 if (thread->tid == getpid()) { in pthread_getattr_np()
/bionic/tests/
Dstack_protector_test.cpp43 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()
Dutils.h98 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()
Dpthread_test.cpp729 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 …]
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/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/linker/
Ddebugger.cpp46 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/
Dasound.h669 struct snd_timer_id tid; member
685 struct snd_timer_id tid; member
692 struct snd_timer_id tid; member

12