apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject WIN32: Purpose of pollset in apr_file_t
Date Sat, 14 Feb 2009 20:45:26 GMT

Someone knows what's the purpose of pollset in
apr_file_t and why is it created for each file?
I mean neither select nor WSAPoll can work on
file handles.

Here is snap from arch/win32/apr_arch_file_io.h:
     /* if there is a timeout set, then this pollset is used */
     apr_pollset_t *pollset;

Looking trough the code I cannot find any reference
to it, except inside apr_wait_for_io_or_timeout,
but that's apr private and used only on unix.

Removing it from apr_file_t struct and removing all
apr_pollset_create calls makes no difference on
win32 (well except lower memory usage)


View raw message