Lines Matching refs:thread_id
35 THREAD_T thread_id; member
87 unshuffled_offset, (long) thread_resources->thread_id, array[unshuffled_offset])); \
378 static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_T thread_id) in allocate_new_resource() argument
380 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Creating data structures for thread %x", thread_id)); in allocate_new_resource()
387 (*thread_resources_ptr)->thread_id = thread_id; in allocate_new_resource()
394 tsrm_new_thread_begin_handler(thread_id); in allocate_new_resource()
412 tsrm_new_thread_end_handler(thread_id); in allocate_new_resource()
419 THREAD_T thread_id; in ts_resource_ex() local
432 …EL_INFO, "Fetching resource id %d for current thread %d", id, (long) thread_resources->thread_id)); in ts_resource_ex()
439 thread_id = tsrm_thread_id(); in ts_resource_ex()
441 thread_id = *th_id; in ts_resource_ex()
444 …TSRM_ERROR((TSRM_ERROR_LEVEL_INFO, "Fetching resource id %d for thread %ld", id, (long) thread_id)… in ts_resource_ex()
447 hash_value = THREAD_HASH_OF(thread_id, tsrm_tls_table_size); in ts_resource_ex()
451 allocate_new_resource(&tsrm_tls_table[hash_value], thread_id); in ts_resource_ex()
453 return ts_resource_ex(id, &thread_id); in ts_resource_ex()
456 while (thread_resources->thread_id != thread_id) { in ts_resource_ex()
461 allocate_new_resource(&thread_resources->next, thread_id); in ts_resource_ex()
463 return ts_resource_ex(id, &thread_id); in ts_resource_ex()
482 TSRM_ASSERT(thread_resources->thread_id == thread_id); in ts_resource_ex()
483 if (thread_id == tsrm_thread_id() && !tsrm_tls_get()) { in ts_resource_ex()
492 allocate_new_resource(last_thread_resources, thread_id); in ts_resource_ex()
513 THREAD_T thread_id = tsrm_thread_id(); in ts_free_thread() local
520 hash_value = THREAD_HASH_OF(thread_id, tsrm_tls_table_size); in ts_free_thread()
524 if (thread_resources->thread_id == thread_id) { in ts_free_thread()