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/polling.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/polling.hpp') diff --git a/src/polling.hpp b/src/polling.hpp index b8f0540..c0b2423 100644 --- a/src/polling.hpp +++ b/src/polling.hpp @@ -18,8 +18,8 @@ along with this program. If not, see . */ -#ifndef __XS_CORE_HPP_INCLUDED__ -#define __XS_CORE_HPP_INCLUDED__ +#ifndef __XS_POLLING_HPP_INCLUDED__ +#define __XS_POLLING_HPP_INCLUDED__ #include "platform.hpp" -- cgit v1.2.3