Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
Data Structures | Typedefs | Functions
multitasking.h File Reference

Header file for multitasking functions. More...

#include <pthread.h>
#include <semaphore.h>
#include "types.h"

Go to the source code of this file.

Data Structures

struct  TASK
 Structure defining a TASK item. More...
 

Typedefs

typedef sem_t SEMA
 

Functions

int MTInit ()
 
int MTSleep (int n)
 
TASK MTSpawn (void *(*)(void *), int)
 
int MTGetUID (TASK)
 
int MTKill (TASK)
 
int MTExit (void)
 
int SEMAInit (SEMA *sem, int val)
 
int SEMALock (SEMA *sem)
 
int SEMAUnlock (SEMA *sem)
 

Detailed Description

Header file for multitasking functions.

Author
Marcus Pham