libiec61850
1.2.0
|
Typedefs | |
typedef struct sThread * | Thread |
typedef void * | Semaphore |
typedef void *(* | ThreadExecutionFunction) (void *) |
Functions | |
Thread | Thread_create (ThreadExecutionFunction function, void *parameter, bool autodestroy) |
Create a new Thread instance. More... | |
void | Thread_start (Thread thread) |
Start a Thread. More... | |
void | Thread_destroy (Thread thread) |
Destroy a Thread and free all related resources. More... | |
void | Thread_sleep (int millies) |
Suspend execution of the Thread for the specified number of milliseconds. More... | |
Semaphore | Semaphore_create (int initialValue) |
void | Semaphore_wait (Semaphore self) |
void | Semaphore_post (Semaphore self) |
void | Semaphore_destroy (Semaphore self) |
typedef void* Semaphore |
Qpaque reference of a Semaphore instance
typedef struct sThread* Thread |
Opaque reference of a Thread instance
typedef void*(* ThreadExecutionFunction) (void *) |
Reference to a function that is called when starting the thread
Semaphore Semaphore_create | ( | int | initialValue | ) |
void Semaphore_destroy | ( | Semaphore | self | ) |
void Semaphore_post | ( | Semaphore | self | ) |
void Semaphore_wait | ( | Semaphore | self | ) |
Thread Thread_create | ( | ThreadExecutionFunction | function, |
void * | parameter, | ||
bool | autodestroy | ||
) |
Create a new Thread instance.
function | the entry point of the thread |
parameter | a parameter that is passed to the threads start function |
autodestroy | the thread is automatically destroyed if the ThreadExecutionFunction has finished. |
void Thread_destroy | ( | Thread | thread | ) |
Destroy a Thread and free all related resources.
thread | the Thread instance to destroy |
void Thread_sleep | ( | int | millies | ) |
Suspend execution of the Thread for the specified number of milliseconds.
void Thread_start | ( | Thread | thread | ) |
Start a Thread.
This function invokes the start function of the thread. The thread terminates when the start function returns.
thread | the Thread instance to start |