#include <ngc/core/ngcbSched.h>Classes | |
| struct | ngcp_proc_t |
Macros | |
| #define | _GNU_SOURCE |
| #define | _REENTRANT |
Typedefs | |
| typedef void *(* | ngcbSCHED_PROC) (void *arg) |
Functions | |
| int | ngcbProcCreate (void(*process)(void *), int n, char *erms) |
| int | ngcbProcCreate2 (void(*process)(void *), int n, size_t stack, char *erms) |
| void | ngcbProcFree (int setId) |
| void | ngcbProcJoin (int setId) |
| int | ngcbProcStart (int setId) |
| int | ngcbProcWaitStart (int procId) |
| int | ngcbProcWaitTrigger (int procId) |
| int | ngcbProcAck (int procId) |
| int | ngcbProcTrigger (int setId) |
| int | ngcbProcWaitAck (int setId) |
| int | ngcbProcSync (int procId) |
| #define _GNU_SOURCE |
| #define _REENTRANT |
| typedef void *(* ngcbSCHED_PROC) (void *arg) |
| int ngcbProcAck | ( | int | procId | ) |
Acknowledge that the process is ready to get the next data.
| int ngcbProcCreate | ( | void(* | calcProcess )(void *), |
| int | n, | ||
| char * | erms ) |
Create a set of n user defined calculation threads with default stack size (1M) using the ngcbProc... routines to synchronize.
| int ngcbProcCreate2 | ( | void(* | calcProcess )(void *), |
| int | n, | ||
| size_t | stack, | ||
| char * | erms ) |
Create a set of n user defined calculation threads using the ngcbProc... routines to synchronize. The stack size is given in bytes. When the stack size is set to zero then the system default value (1M) is used.
| void ngcbProcFree | ( | int | setId | ) |
Free all thread-resources in set.
| void ngcbProcJoin | ( | int | setId | ) |
Join all threads in set.
| int ngcbProcStart | ( | int | setId | ) |
Perform synchronous start of a set of threads.
| int ngcbProcSync | ( | int | procId | ) |
Synchronize a set of threads created with ngcbProcCreate() from inside the threads.
| int ngcbProcTrigger | ( | int | setId | ) |
Send trigger to a set of threads.
| int ngcbProcWaitAck | ( | int | setId | ) |
Wait for acknowledge from a set threads.
| int ngcbProcWaitStart | ( | int | procId | ) |
Wait for start signal from main process.
| int ngcbProcWaitTrigger | ( | int | procId | ) |
Wait for next trigger from main process.