You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
368 B
C

3 years ago
#pragma once
// process control
int spawn(void (*child)(void*), void* args);
void sleep(int length);
int join(int pid, int timeout);
int kill(int pid);
void __attribute__((noreturn)) exit(int code);
// locks
typedef int m_lock;
m_lock mutex_create();
int mutex_lock(m_lock lock, int timeout);
void mutex_unlock(m_lock lock);
void mutex_destroy(m_lock lock);