/** * \file multitasking.h * \brief Header file for multitasking functions * \author Marcus Pham */ #ifndef MULTITASKING_H_ #define MULTITASKING_H_ #include //need to implement all this /* int MTInit(); // Start multi-tasking int MTSleep(int n) // Sleep for n/100 seconds Task MTSpawn (void (*fct)(void), int id) // Create and initialize thread with given ID int MTGetUID(Task); // Read ID of current thread int MTKill(Task); // Delete thread (0 for self) int MTExit(void); // Terminate current thread Sema SEMAInit(Semaphore *sem,int val); // Create and initialiye semaphore with VAL int SEMALock(Sema sem); // Lock semaphore int SEMAUnlock(Sema); // Unlock semaphore */ #endif /* MULTITASKING_H_ */