Hi all,

today I noticed that the pool member in the apr_pollfd_t structure isn't used at all within APR! Why should there an associated memory pool? What is the purpose of this field then?

From include/apr_poll.h:

/** Poll descriptor set. */
struct apr_pollfd_t {
    apr_pool_t *p;              /**< associated pool */
    apr_datatype_e desc_type;   /**< descriptor type */
    apr_int16_t reqevents;      /**< requested events */
    apr_int16_t rtnevents;      /**< returned events */
    apr_descriptor desc;        /**< @see apr_descriptor */
    void *client_data;          /**< allows app to associate context */
};


Regards,
Stefan

Reply via email to