MCPcopy Create free account
hub / github.com/f9micro/f9-kernel / register_thread_ptr

Function register_thread_ptr

user/lib/posix/pthread.c:424–450  ·  view source on GitHub ↗

Register pthread_t* by UTCB address (called by pthread_entry_wrapper). * Returns 0 on success, -1 if thread_ptr_table is full. * When table is full, pthread_cancel and get_current_thread_ptr will fail. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

pthread_entry_wrapperFunction · 0.85

Calls 3

printfFunction · 0.85
spinlock_acquireFunction · 0.70
spinlock_releaseFunction · 0.70

Tested by

no test coverage detected