summaryrefslogtreecommitdiffabout
path: root/include/sitecing/scoreboard.h
Unidiff
Diffstat (limited to 'include/sitecing/scoreboard.h') (more/less context) (show whitespace changes)
-rw-r--r--include/sitecing/scoreboard.h3
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 {
24 * The state enumeration. 24 * The state enumeration.
25 */ 25 */
26 enum _state { 26 enum _state {
27 /** 27 /**
28 * The slot is free. 28 * The slot is free.
29 */ 29 */
30 state_free = 0, 30 state_free = 0,
31 /** 31 /**
32 * The slot is allocated. 32 * The slot is allocated.
33 */ 33 */
34 state_allocated, 34 state_allocated,
35 /** 35 /**
36 * The process is idle. 36 * The process is idle.
37 */ 37 */
38 state_idle, 38 state_idle,
39 /** 39 /**
40 * The process is accepting connection. 40 * The process is accepting connection.
41 */ 41 */
42 state_accept, 42 state_accept,
43 /** 43 /**
44 * The process is processing request. 44 * The process is processing request.
45 */ 45 */
46 state_processing 46 state_processing
47 } state; 47 } state;
48 /**
49 * Process ID
50 */
48 pid_t pid; 51 pid_t pid;
49 }; 52 };
50 53
51 /** 54 /**
52 * The scoreboard manager. 55 * The scoreboard manager.
53 */ 56 */
54 class scoreboard { 57 class scoreboard {
55 /** 58 /**
56 * shared memory id. 59 * shared memory id.
57 */ 60 */
58 int shmid; 61 int shmid;
59 public: 62 public:
60 /** 63 /**
61 * Pointer to the scoreboard slots. 64 * Pointer to the scoreboard slots.
62 */ 65 */
63 scoreboard_slot *slots; 66 scoreboard_slot *slots;
64 67
65 scoreboard(); 68 scoreboard();
66 ~scoreboard(); 69 ~scoreboard();
67 70
68 /** 71 /**
69 * Allocate a scoreboard slot. 72 * Allocate a scoreboard slot.
70 * @return the slot number. 73 * @return the slot number.
71 */ 74 */