MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_main_thread_self

Function acl_main_thread_self

lib_acl/src/init/acl_init.c:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133#endif
134
135unsigned long acl_main_thread_self(void)
136{
137#ifdef ACL_UNIX
138 return ((unsigned long) acl_var_main_tid);
139#elif defined(ACL_WINDOWS)
140 if (acl_var_main_tid == (unsigned long) -1)
141 acl_pthread_once(&__once_control, get_main_thread_id);
142 return (acl_var_main_tid);
143#else
144#error "Unknown OS"
145#endif
146}

Callers 15

fiber_io_checkFunction · 0.85
fiber_checkFunction · 0.85
epoll_event_createFunction · 0.85
trace_buf_freeFunction · 0.85
trace_infoFunction · 0.85
mainFunction · 0.85
thread_free_bufFunction · 0.85
acl_strerror1Function · 0.85
once_initFunction · 0.85
tls_callocFunction · 0.85
thread_epoll_initFunction · 0.85
once_initFunction · 0.85

Calls 1

acl_pthread_onceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…