#ifndef __MT_THREAD_H__ #define __MT_THREAD_H__ #include "clock.h" /* Kernel level wrappers for minithread calls */ /* first argument is the address of the function to be forked off, and the second is the argument to the function */ int mt_minithread_fork(unsigned fn, unsigned arg); int mt_minithread_self(); int mt_minithread_yield(); int mt_minithread_die(); int mt_semaphore_create(); int mt_semaphore_initialize(unsigned sem, unsigned cnt); int mt_semaphore_P(unsigned sem); int mt_semaphore_V(unsigned sem); #endif __MT_THREAD_H__