pthread_self
if (thread == pthread_self())
if (thread == pthread_self())
__strong_alias(__libc_thr_self,pthread_self)
return pthread_self()->pt_is_main;
pthread_t pthread_self(void);
self = pthread_self();
self = pthread_self();
return pthread_self();
if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &sp)) {
if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &sp)) {
printf("[%p] select start to=%lu\n", (void *)pthread_self(),
(void *)pthread_self(), ret);
(void *)pthread_self(), ret);
(void *)pthread_self(), ret);
(void *)pthread_self(), fd);
(void *)pthread_self());
(void *)pthread_self(), ret, nfd);
printf("[%p] write %d\n", (void *)pthread_self(), fd);
main_thread = pthread_self();
pthread_setname_np(pthread_self(), "main", NULL);
pthread_setname_np(pthread_self(), "consumer", NULL);
pthread_detach(pthread_self());
myself = pthread_self();
ATF_REQUIRE(myself == pthread_self());
ATF_REQUIRE(myself == pthread_self());
ATF_REQUIRE(myself == pthread_self());
ATF_REQUIRE(myself == pthread_self());
ATF_REQUIRE(myself == pthread_self());
pthread_setname_np(pthread_self(), "thread %d",
pthread_setname_np(pthread_self(), "thread %d",
pthread_kill(pthread_self(), sigval);
pthread_cancel(pthread_self());
pthread_t self = pthread_self();
pthread_t self = pthread_self();
RZ(pthread_cancel(pthread_self()));
RZ(pthread_getname_np(pthread_self(), name, sizeof(name)));
RZ(pthread_setname_np(pthread_self(), "%s", name));
RZ(pthread_cancel(pthread_self())); /* cancel */
ATF_REQUIRE(pthread_getattr_np(pthread_self(), &attr) == 0);
caller = pthread_self();
mainthread = pthread_self();
self = pthread_self();
self = pthread_self();
printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count);
printf("1: Thread %p\n", pthread_self());
printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count);
printf("1: Thread %p\n", pthread_self());
pthread_t self = pthread_self();
pthread_t thr, self = pthread_self();
pthread_t self = pthread_self();
pthread_t self = pthread_self();
thr_usr1 = pthread_self();
thr_usr2 = pthread_self();
pthread_t t = pthread_self();
pthread_t t = pthread_self();
RZ(pthread_getattr_np(pthread_self(), &attr));
nself = (void *)pthread_self();
oself = (void *)pthread_self();
pthread_setname_np(pthread_self(), "slave", NULL);
pthread_setname_np(pthread_self(), "master", NULL);