Searched refs:ptd (Results 1 – 2 of 2) sorted by relevance
52 if (ptd && ptd->magic == PTHREAD_MAGIC) return ptd; in _pthread_get_data()118 ptd->canceled = 0; in _pthread_data_create()138 rt_free(ptd); in _pthread_data_create()209 if (ptd) in _pthread_data_destroy()269 rt_free(ptd); in _pthread_data_destroy()336 value = ptd->thread_entry(ptd->thread_parameter); in pthread_entry_stub()477 if (rt_thread_init(ptd->tid, name, pthread_entry_stub, ptd, in pthread_create()490 ptd->tid->pthread_data = (void *)ptd; in pthread_create()983 tid = ptd->tid; in pthread_exit()1100 if (ptd) in pthread_kill()[all …]
51 struct _pthread_data* ptd; in pthread_getspecific() local56 ptd = (_pthread_data_t *)rt_thread_self()->pthread_data; in pthread_getspecific()57 RT_ASSERT(ptd != NULL); in pthread_getspecific()59 if (ptd->tls == NULL) in pthread_getspecific()63 return ptd->tls[key]; in pthread_getspecific()102 struct _pthread_data* ptd; in pthread_setspecific() local107 ptd = (_pthread_data_t *)rt_thread_self()->pthread_data; in pthread_setspecific()108 RT_ASSERT(ptd != NULL); in pthread_setspecific()111 if (ptd->tls == NULL) in pthread_setspecific()113 ptd->tls = (void**)rt_calloc(PTHREAD_KEY_MAX, sizeof(void*)); in pthread_setspecific()[all …]
Completed in 6 milliseconds