|
@@ -43,19 +43,21 @@
|
43
|
43
|
|
44
|
44
|
#define PyFCGI_SEM(i) (PyFCGI_conf.sems[i])
|
45
|
45
|
|
|
46
|
+#define PyFCGI_SEM_OPEN(i) (PyFCGI_conf.sems[i].sem != NULL)
|
|
47
|
+
|
46
|
48
|
/**@defgroup IPC_flags IPC component flags
|
47
|
49
|
* @ingroup IPC
|
48
|
50
|
* @brief For IPC component selection */
|
49
|
51
|
/**@brief Worker state semaphore
|
50
|
52
|
* @ingroup IPC_flags */
|
51
|
53
|
#define IPC_WSTATE 2
|
52
|
|
-/**@brief Worker state semaphore
|
|
54
|
+/**@brief Request counter semaphore
|
53
|
55
|
* @ingroup IPC_flags */
|
54
|
56
|
#define IPC_WREQS 4
|
55
|
|
-/**@brief Worker state semaphore
|
|
57
|
+/**@brief Monitor <-> pool semaphore
|
56
|
58
|
* @ingroup IPC_flags */
|
57
|
59
|
#define IPC_SEMST 8
|
58
|
|
-/**@brief Worker state semaphore
|
|
60
|
+/**@brief Monitor <-> pool SHM flag
|
59
|
61
|
* @ingroup IPC_flags */
|
60
|
62
|
#define IPC_SHMST 16
|
61
|
63
|
|