X-Git-Url: https://git.dlugolecki.net.pl/?p=vlp.git;a=blobdiff_plain;f=src%2Fint%2Fprocess.h;fp=src%2Fint%2Fprocess.h;h=7644da9d3db2dd2b262795ee4c9673f050caad8d;hp=22fe05626334609f4db687522b4dc37299d29959;hb=92bd051b4d3877757e094b572e11ff2dda333d38;hpb=fdd7cc36378cfdd1692885c39f0e8ccd3ea09c1d diff --git a/src/int/process.h b/src/int/process.h index 22fe056..7644da9 100644 --- a/src/int/process.h +++ b/src/int/process.h @@ -1,35 +1,50 @@ #include "queue.h" -/* Process management definitions : */ -/* maximum number of processes on one node */ +/** + * @defgroup + * @brief Process management definitions + */ +/** @{ */ + +/** maximum number of processes on one node */ #define MAXPROCESS 64 -/* maximum number of waiting messages */ + +/** maximum number of waiting messages */ #define MAXMSGQUEUE 16 -/* message length defined by me (PS) */ +/** message length defined by me (PS) */ #define MSGLENGTH 256 +/** @} */ - -/* Process state : */ - +/** + * @defgroup + * @brief Process states + */ +/** @{ */ /* during generation of process object */ #define GENERATING 0 -/* non-active process (suspended by STOP) */ + +/** non-active process (suspended by STOP) */ #define STOPPED 1 -/* active process (ready to execute) */ + +/** active process (ready to execute) */ #define EXECUTING 2 -/* waiting for NEW of another process */ + +/** waiting for NEW of another process */ #define WAITFORNEW 3 -/* waiting for remote procedure call */ + +/** waiting for remote procedure call */ #define WAITFORRPC 4 -/* during execution of ACCEPT statement */ + +/** during execution of ACCEPT statement */ #define ACCEPTING 5 -/* waiting for process prototype */ -#define WAITASKPRO 6 -/* Process descriptor : */ +/** waiting for process prototype */ +#define WAITASKPRO 6 +/** @} */ +/** Process descriptor */ typedef struct { /* TRUE if in use by some process */