Cthulhu  0.2.10
Cthulhu compiler collection
thread.c File Reference
#include "os_common.h"
#include "base/panic.h"
Include dependency graph for thread.c:

Go to the source code of this file.

Functions

STA_DECL os_error_t os_thread_init (os_thread_t *thread, const char *name, os_thread_fn_t fn, void *arg)
 
STA_DECL os_error_t os_thread_join (os_thread_t *thread, os_status_t *status)
 
os_thread_id_t os_get_thread_id (void)
 get the current thread id More...
 

Function Documentation

◆ os_thread_init()

STA_DECL os_error_t os_thread_init ( os_thread_t thread,
const char *  name,
os_thread_fn_t  fn,
void *  arg 
)

Definition at line 16 of file thread.c.

◆ os_thread_join()

STA_DECL os_error_t os_thread_join ( os_thread_t thread,
os_status_t status 
)

Definition at line 47 of file thread.c.