示例#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);
}