diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-21 12:15:45 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-22 07:17:44 +0200 |
commit | 94a38c72a7c8803d0947ac86a425152a8b1895ba (patch) | |
tree | 8552d2696b5db252a18c36535f54cf7df525d507 /src/upoll.hpp | |
parent | 0fb5a016497d3061a6edf40752c06127f3abb796 (diff) |
Initialise fd_set once for signler_t object
Optimisation. Up to now new fd_set was initialised in
each signaler_wait call. Now the fd_set is initialised
once when signaler is created. This is useful espacially on
Windows where fd_set is list of pointers rather than bitset
and thus can be rather large.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/upoll.hpp')
-rw-r--r-- | src/upoll.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upoll.hpp b/src/upoll.hpp index d63df5e..d08cf5e 100644 --- a/src/upoll.hpp +++ b/src/upoll.hpp @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef __XS_POLLING_HPP_INCLUDED__ -#define __XS_POLLING_HPP_INCLUDED__ +#ifndef __XS_UPOLL_HPP_INCLUDED__ +#define __XS_UPOLL_HPP_INCLUDED__ #include "../include/xs.h" |