コード例 #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);
}