]> granicus.if.org Git - apache/commitdiff
make the type field in listener_poll_type an enum to make gdb output more
authorGreg Ames <gregames@apache.org>
Sat, 27 Nov 2004 00:37:54 +0000 (00:37 +0000)
committerGreg Ames <gregames@apache.org>
Sat, 27 Nov 2004 00:37:54 +0000 (00:37 +0000)
useful.

add a comment about a field I haven't been able to grok yet.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106674 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/event/event.c

index afc7f0a8cc70b9cc505562a8bcaebcdf5c8a2745..614469a5cff71dee1a434afc5ae6b092347c0bcd 100644 (file)
@@ -184,17 +184,19 @@ typedef struct
     apr_threadattr_t *threadattr;
 } thread_starter;
 
+typedef enum
+{
+    PT_CSD,
+    PT_ACCEPT
+} poll_type_e;
 
 typedef struct
 {
-    int type;
-    int status;
+    poll_type_e type;
+    int status;        /*XXX what is this for?  0 and 1 don't make it clear */
     void *baton;
 } listener_poll_type;
 
-#define PT_CSD 0
-#define PT_ACCEPT 1
-
 #define ID_FROM_CHILD_THREAD(c, t)    ((c * thread_limit) + t)
 
 /*