Ejemplo n.º 1
0
Archivo: error.c Proyecto: Oneiroi/haka
INIT static void _error_init()
{
	UNUSED const bool ret = local_storage_init(&local_error_key, error_delete);
	assert(ret);

	error_is_valid = true;
}
Ejemplo n.º 2
0
INIT static void thread_id_init()
{
    UNUSED const bool ret = local_storage_init(&thread_id_key, NULL);
    assert(ret);

    main_thread = pthread_self();
    assert(main_thread);
}