Home
last modified time | relevance | path

Searched refs:cached_pid (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
Dgetpid.cpp38 pid_t cached_pid; in __get_cached_pid() local
39 if (__predict_true(self->get_cached_pid(&cached_pid))) { in __get_cached_pid()
40 return cached_pid; in __get_cached_pid()
47 pid_t cached_pid = __get_cached_pid(); in getpid() local
48 if (__predict_true(cached_pid != 0)) { in getpid()
49 return cached_pid; in getpid()
Dpthread_internal.h90 bool get_cached_pid(pid_t* cached_pid) { in get_cached_pid() argument
91 *cached_pid = cached_pid_; in get_cached_pid()
92 return (*cached_pid != 0); in get_cached_pid()
/bionic/tests/
Dunistd_test.cpp444 pid_t cached_pid; in TEST() local
445 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST()
446 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()
452 if (self->get_cached_pid(&cached_pid)) { in TEST()
466 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST()
467 ASSERT_EQ(syscall(__NR_getpid), cached_pid); in TEST()