Searched refs:tls (Results 1 – 2 of 2) sorted by relevance
1656 struct mg_workerTLS *tls = in mg_current_thread_id()1658 if (tls == NULL) { in mg_current_thread_id()1661 tls = (struct mg_workerTLS *)mg_malloc(sizeof(struct mg_workerTLS)); in mg_current_thread_id()1662 tls->is_master = -2; /* -2 means "3rd party thread" */ in mg_current_thread_id()1663 tls->thread_idx = (unsigned)mg_atomic_inc(&thread_idx_max); in mg_current_thread_id()1664 pthread_setspecific(sTlsKey, tls); in mg_current_thread_id()1666 return tls->thread_idx; in mg_current_thread_id()3529 struct mg_workerTLS *tls = in mg_get_thread_pointer() local3531 return tls->user_ptr; in mg_get_thread_pointer()3848 struct mg_workerTLS *tls = local[all …]
85 - src/tls.c