Go to the documentation of this file.
53 ubcond->
id = (int) cond;
92 kprintf(
"Mutex Already Locked By This Thread");
116 kprintf(
"Trying To Unlock Mutex From No Locking Thread[%i - %i:0x%X]\n", ubmutex->
pid,
_current->
id, *ubmutex);
#define ATOMIC_VAR_INIT(value)
int ubthread_mutex_unlock(ubthread_mutex_t *mutex)
int ubthread_mutex_lock(ubthread_mutex_t *mutex)
int ubthread_cond_signal(ubthread_cond_t *cond)
kTask_t * ubthread_self()
int ubthread_create(kTask_t **thread, const uInt32 *attr, void(*tproc)(void), void *arg)
void kfree(void *baseAddr)
int ubthread_mutex_init(ubthread_mutex_t *mutex, const uint32_t attr)
void kpanic(const char *fmt,...)
print panic message and halt system
vitalsNode * systemVitals
struct ubthread_mutex_list * mutex
int ubthread_mutex_destroy(ubthread_mutex_t *mutex)
int ubthread_cond_wait(ubthread_cond_t *cond, ubthread_mutex_t *mutex)
int ubthread_cond_init(ubthread_cond_t *cond, const uint32_t attr)
uInt32 execThread(void(*tproc)(void), uInt32 stack, char *arg)
int ubthread_cond_timedwait(ubthread_cond_t *cond, ubthread_mutex_t *mutex, const struct timespec *abstime)
void * kmalloc(uInt32 len)
void * memset(void *dst, int c, size_t length)
int ubthread_cond_destroy(ubthread_cond_t *cond)
struct ubthread_cond_list * conds
int kprintf(const char *,...)
int ubthread_cond_broadcast(ubthread_cond_t *cond)