user/lib/libc/src/threads/thread_info.c
/**
 * Initializes the userspace threading component.
 */
Initializes the userspace threading component.
Initializes the userspace threading component .
void __libc_thread_init() {
    int err = mtx_init(&gState.blocksLock, mtx_plain);
    if(err != thrd_success) abort();
    gState.blocks = hashmap_new(sizeof(uthread_t), 0, 0, 0, _HashmapThreadHash,
            _HashmapThreadCompare, NULL);
}
void __libc_thread_init ( ) { int err = mtx_init ( & gState . blocksLock , mtx_plain ) ; if ( err != thrd_success ) abort ( ) ; gState . blocks = hashmap_new ( sizeof ( uthread_t ) , 0 , 0 , 0 , _HashmapThreadHash , _HashmapThreadCompare , NULL ) ; }
Initializes the userspace threading component.
Initializes the userspace threading component .