milk
1.01
Modular Image processing Library toolKit
|
Command line interface. More...
#include <semaphore.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <sched.h>
Go to the source code of this file.
Data Structures | |
struct | PROCESSINFO |
struct | PROCESSINFOLIST |
struct | PROCESSINFODISP |
struct | PROCINFOPROC |
struct | STRINGLISTENTRY |
Typedefs | |
typedef int | errno_t |
Functions | |
PROCESSINFO * | processinfo_setup (char *pinfoname, char descriptionstring[200], char msgstring[200], const char *functionname, const char *filename, int linenumber) |
errno_t | processinfo_error (PROCESSINFO *processinfo, char *errmsgstring) |
errno_t | processinfo_loopstart (PROCESSINFO *processinfo) |
int | processinfo_loopstep (PROCESSINFO *processinfo) |
int | processinfo_compute_status (PROCESSINFO *processinfo) |
PROCESSINFO * | processinfo_shm_create (const char *pname, int CTRLval) |
PROCESSINFO * | processinfo_shm_link (const char *pname, int *fd) |
int | processinfo_shm_close (PROCESSINFO *pinfo, int fd) |
int | processinfo_cleanExit (PROCESSINFO *processinfo) |
int | processinfo_SIGexit (PROCESSINFO *processinfo, int SignalNumber) |
int | processinfo_WriteMessage (PROCESSINFO *processinfo, const char *msgstring) |
int | processinfo_exec_start (PROCESSINFO *processinfo) |
int | processinfo_exec_end (PROCESSINFO *processinfo) |
int | processinfo_CatchSignals () |
int | processinfo_ProcessSignals (PROCESSINFO *processinfo) |
errno_t | processinfo_waitoninputstream_init (PROCESSINFO *processinfo, imageID trigID, int triggermode, int semindexrequested) |
Set up input wait stream. More... | |
errno_t | processinfo_waitoninputstream (PROCESSINFO *processinfo) |
Wait on a stream. More... | |
errno_t | processinfo_update_output_stream (PROCESSINFO *processinfo, imageID outstreamID) |
Update ouput stream at completion of processinfo-enabled loop iteration. More... | |
errno_t | processinfo_CTRLscreen () |
Command line interface.
Command line interface (CLI) definitions and function prototypes
Command line interface (CLI) definitions and function prototypes
errno_t processinfo_CTRLscreen | ( | ) |
PROCESSINFO* processinfo_shm_create | ( | const char * | pname, |
int | CTRLval | ||
) |
Create PROCESSINFO structure in shared memory
The structure holds real-time information about a process, so its status can be monitored and controlled See structure PROCESSINFO in CLLIcore.h for details
errno_t processinfo_update_output_stream | ( | PROCESSINFO * | processinfo, |
imageID | outstreamID | ||
) |
Update ouput stream at completion of processinfo-enabled loop iteration.
errno_t processinfo_waitoninputstream | ( | PROCESSINFO * | processinfo | ) |
Wait on a stream.
errno_t processinfo_waitoninputstream_init | ( | PROCESSINFO * | processinfo, |
imageID | trigID, | ||
int | triggermode, | ||
int | semindexrequested | ||
) |
Set up input wait stream.
Specify stream on which the loop process will be triggering, and what is the trigger mode.
The actual trigger mode may be different from the requested trigger mode.
The standard option should be tiggermode = PROCESSINFO_TRIGGERMODE_SEMAPHORE and semindex = -1, which will automatically find a suitable semaphore