Commit 57b1ad7a authored by Greg Ames's avatar Greg Ames
Browse files

make the type field in listener_poll_type an enum to make gdb output more

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
parent 9bd8d857
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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)

/*