lib60870-C  2.3.2
C source code library for the IEC 60870-5-101/104 protocols
Typedefs | Functions
hal_thread.h File Reference

Abstraction layer for threading and synchronization. More...

#include "hal_base.h"
Include dependency graph for hal_thread.h:

Go to the source code of this file.

Typedefs

typedef struct sThread * Thread
 
typedef void * Semaphore
 
typedef void *(* ThreadExecutionFunction) (void *)
 

Functions

PAL_API Thread Thread_create (ThreadExecutionFunction function, void *parameter, bool autodestroy)
 Create a new Thread instance. More...
 
PAL_API void Thread_start (Thread thread)
 Start a Thread. More...
 
PAL_API void Thread_destroy (Thread thread)
 Destroy a Thread and free all related resources. More...
 
PAL_API void Thread_sleep (int millies)
 Suspend execution of the Thread for the specified number of milliseconds.
 
PAL_API Semaphore Semaphore_create (int initialValue)
 
PAL_API void Semaphore_wait (Semaphore self)
 
PAL_API void Semaphore_post (Semaphore self)
 
PAL_API void Semaphore_destroy (Semaphore self)
 

Detailed Description

Abstraction layer for threading and synchronization.