-rw-r--r-- | include/sitecing/scoreboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sitecing/scoreboard.h b/include/sitecing/scoreboard.h index 788f881..1371ab1 100644 --- a/include/sitecing/scoreboard.h +++ b/include/sitecing/scoreboard.h @@ -24,48 +24,51 @@ namespace sitecing { * The state enumeration. */ enum _state { /** * The slot is free. */ state_free = 0, /** * The slot is allocated. */ state_allocated, /** * The process is idle. */ state_idle, /** * The process is accepting connection. */ state_accept, /** * The process is processing request. */ state_processing } state; + /** + * Process ID + */ pid_t pid; }; /** * The scoreboard manager. */ class scoreboard { /** * shared memory id. */ int shmid; public: /** * Pointer to the scoreboard slots. */ scoreboard_slot *slots; scoreboard(); ~scoreboard(); /** * Allocate a scoreboard slot. * @return the slot number. */ |