From 94a38c72a7c8803d0947ac86a425152a8b1895ba Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 21 Apr 2012 12:15:45 +0200 Subject: 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 --- src/upoll.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upoll.hpp') 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 . */ -#ifndef __XS_POLLING_HPP_INCLUDED__ -#define __XS_POLLING_HPP_INCLUDED__ +#ifndef __XS_UPOLL_HPP_INCLUDED__ +#define __XS_UPOLL_HPP_INCLUDED__ #include "../include/xs.h" -- cgit v1.2.3