예제 #1
0
파일: pthread.c 프로젝트: kstraube/hysim
int pthread_key_create(pthread_key_t *key, void (*destructor)(void *))
{
    pthread_initialize();
    if (!thread_key_create((thread_key_t *)key, destructor))
        return errno;
    return OK;
}
예제 #2
0
파일: except.c 프로젝트: Bira/ferret
static void exception_stack_alloc(void)
{
    thread_key_create(&exception_stack_key, NULL);
}