/illumos-gate/usr/src/test/libc-tests/tests/threads/ |
H A D | thread_name.c | 57 rc = pthread_getname_np(pthread_self(), name, sizeof (name)); in main() 66 rc = pthread_setname_np(pthread_self(), name); in main() 71 rc = pthread_getname_np(pthread_self(), name, sizeof (name)); in main() 79 rc = pthread_getname_np(pthread_self(), name, 2); in main() 87 rc = pthread_getname_np(pthread_self(), NULL, sizeof (name)); in main() 95 rc = pthread_setname_np(pthread_self(), NULL); in main() 100 rc = pthread_getname_np(pthread_self(), name, sizeof (name)); in main() 121 rc = pthread_setname_np(pthread_self(), in main()
|
H A D | pthread_attr_get_np.c | 130 VERIFY0(pthread_attr_get_np(pthread_self(), &pgn_attr)); in pgn_set_one_thr() 203 VERIFY0(pthread_attr_get_np(pthread_self(), &pgn_attr)); in pgn_set_two_thr() 241 VERIFY0(pthread_detach(pthread_self())); in pgn_set_two_thr() 245 VERIFY0(pthread_setschedparam(pthread_self(), opolicy, &oparam)); in pgn_set_two_thr() 247 VERIFY0(pthread_attr_get_np(pthread_self(), &pgn_attr)); in pgn_set_two_thr() 316 VERIFY0(pthread_attr_get_np(pthread_self(), &selfattr)); in pgn_set_three()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 100 pthread_t myself = pthread_self(); in __nis_lock_hash_table() 188 table->traverser_id == pthread_self()) { in __nis_ulock_hash_table() 221 pthread_self(), traverse?"traverse":"non-traverse", table, in __nis_ulock_hash_table() 286 item->writer_id = pthread_self(); in __nis_insert_item_mt() 290 item->last_reader_id = pthread_self(); in __nis_insert_item_mt() 349 pthread_t me = pthread_self(); in __nis_find_item_mt() 414 mtid = pthread_self(); in __nis_pop_item_mt() 507 mtid = pthread_self(); in __nis_remove_item_mt() 589 item->writer_id != pthread_self()) || in __nis_release_item() 649 if (item->writer_id != pthread_self()) in __nis_item_access()
|
H A D | nisdb_rw.h | 80 #define MUTEXLOCK(var, msg) if (var ## _owner != pthread_self()) { \ 82 var ## _owner = pthread_self(); \ 85 #define MUTEXUNLOCK(var, msg) if (var ## _owner == pthread_self()) { \ 90 #define ASSERTMUTEXHELD(var) if (var ## _owner != pthread_self()) \
|
H A D | nisdb_rw.c | 167 pthread_t myself = pthread_self(); in __nisdb_wlock_trylock() 347 pthread_t myself = pthread_self(); in __nisdb_rlock() 414 pthread_t myself = pthread_self(); in __nisdb_wulock() 463 pthread_t myself = pthread_self(); in __nisdb_rulock() 573 if (rw->writer_count == 0 || rw->writer.id != pthread_self()) { in __nisdb_assert_wheld() 592 pthread_t myself = pthread_self(); in __nisdb_assert_rheld() 646 pthread_t myself = pthread_self(); in __nisdb_destroy_lock()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | privileges.c | 69 VERIFY3S(pthread_equal(pthread_self(), priv_thread), !=, 0); in illumos_priv_reduce() 78 VERIFY3S(pthread_equal(pthread_self(), priv_thread), !=, 0); in illumos_priv_add_set() 108 priv_thread = pthread_self(); in illumos_priv_init() 161 VERIFY3S(pthread_equal(pthread_self(), priv_thread), !=, 0); in illumos_priv_lock()
|
/illumos-gate/usr/src/cmd/syslogd/ |
H A D | syslogd.c | 400 mythreadno = pthread_self(); in main() 547 mythreadno = pthread_self(); in openklog() 618 mythreadno = pthread_self(); in sys_poll() 688 mythreadno = pthread_self(); in getkmsg() 800 mythreadno = pthread_self(); in net_poll() 972 mythreadno = pthread_self(); in logmymsg() 1007 mythreadno = pthread_self(); in shutdown_msg() 1037 mythreadno = pthread_self(); in flushmsg() 1069 mythreadno = pthread_self(); in formatnet() 1112 mythreadno = pthread_self(); in formatsys() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/threadname/ |
H A D | tst.threadname.c | 75 if (pthread_setname_np(pthread_self(), NULL) != 0) in thread() 78 (void) pthread_setname_np(pthread_self(), name); in thread()
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | ucontext.c | 38 pthread_t ltid = pthread_self(); in report() 47 pthread_t ltid = pthread_self(); in run()
|
/illumos-gate/usr/src/cmd/smserverd/ |
H A D | smediad.c | 448 debug(5, "smserverproc thread %d running....\n", pthread_self()); in smserverproc_get_serverinfo_1() 457 fatal(gettext(BADSIG_MSG), pthread_self(), sig, siginfo->si_addr, in server_badsig_handler() 1339 pthread_self()); in sm_server_thread() 1347 pthread_self()); in sm_server_thread() 1373 debug(5, "thr[%d] bound to Client Door[%d]", pthread_self(), in sm_server_thread() 1418 pthread_self(), door_dp->dd_ddoor_descriptor); in cleanup() 1422 "Door(%d) failed = %d"), pthread_self(), in cleanup() 1431 debug(1, "cleanup[%d]: release shared memory", pthread_self()); in cleanup() 1442 debug(1, "cleanup[%d]: close(%d) target device", pthread_self(), in cleanup() 1446 "failed = %d\n"), pthread_self(), errno); in cleanup() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netbios.c | 296 nbtd.nbs_ns.s_tid = pthread_self(); in smb_netbios_event() 303 nbtd.nbs_dgm.s_tid = pthread_self(); in smb_netbios_event() 310 nbtd.nbs_browser.s_tid = pthread_self(); in smb_netbios_event() 317 nbtd.nbs_timer.s_tid = pthread_self(); in smb_netbios_event()
|
/illumos-gate/usr/src/lib/libuutil/common/ |
H A D | uu_misc.c | 194 uu_panic_thread = pthread_self(); in uu_panic() 202 if (uu_panic_thread == pthread_self()) in uu_panic()
|
/illumos-gate/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 105 pthread_t my_tid = pthread_self(); in job_cleanup() 138 active.tpa_tid = pthread_self(); in tpool_worker() 491 pthread_t my_tid = pthread_self(); in tpool_member() 510 pthread_t my_tid = pthread_self(); in postfork1_child_tpool()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | k5-thread.h | 464 # pragma weak pthread_self macro 536 if (_r2 == 0) _m2->owner = pthread_self(); \ 546 m->owner = pthread_self(); in k5_pthread_mutex_lock() 552 ? ASSERT(pthread_equal((M)->owner, pthread_self())) \
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | main.c | 474 pthread_self()); in main() 483 pthread_self()); in main()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_subr.c | 66 pthread_t tid = pthread_self(); in fmd_vpanic() 314 ((pthread_self() << ENA_FMT1_CPUID_SHFT) & ENA_FMT1_CPUID_MASK) | in fmd_ena()
|
H A D | fmd_thread.c | 124 if (flag == FMD_THREAD_JOIN && tp->thr_tid != pthread_self() && in fmd_thread_destroy()
|
H A D | fmd_module.c | 755 pthread_t self = pthread_self(); in fmd_module_lock() 778 ASSERT(mp->mod_owner == pthread_self()); in fmd_module_unlock() 798 mp->mod_owner = pthread_self(); in fmd_module_trylock() 811 mp->mod_owner == pthread_self()); in fmd_module_locked() 868 pthread_t tid = pthread_self(); in fmd_module_abort()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | logging.c | 67 offset = snprintf(buf, bufsize, "%d: ", pthread_self()); in log_format()
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Trace.cc | 139 tid = pthread_self(); in Trace()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | client.c | 130 rlp->rl_tid = pthread_self(); in start_log() 366 assert(cp->rc_insert_thr != pthread_self()); in client_release() 384 assert(cp->rc_insert_thr != pthread_self()); in client_start_insert() 387 cp->rc_insert_thr = pthread_self(); in client_start_insert() 395 assert(cp->rc_insert_thr == pthread_self()); in client_end_insert() 418 assert(cp->rc_insert_thr == pthread_self()); in entity_add() 561 assert(cp->rc_insert_thr == pthread_self()); in iter_add() 1730 cp->rc_notify_thr = pthread_self(); in client_wait() 1752 assert(cp->rc_notify_thr == pthread_self()); in client_wait()
|
/illumos-gate/usr/src/test/libc-tests/cfg/symbols/ |
H A D | pthread_h.cfg | 47 func | pthread_self |\
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_spool.c | 134 if (pthread_self() == smbd.s_spool_tid) in smbd_spool_stop() 244 pjob.pj_pid = pthread_self(); in smbd_spool_copyfile()
|
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | adutils_threadfuncs.c | 118 return ((void *)(uintptr_t)pthread_self()); in adutils_threadid()
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | c11_thr.c | 211 return (pthread_self()); in thrd_current()
|