summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2014-01-17 20:02:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2014-01-18 10:44:42 (GMT)
commit85c46a0fcce3495fe94397d53791628a8ccc74c4 (patch)
tree233decfdbe1c221f3db2149f0f59d828173c102e /Sluift/SluiftGlobals.h
parent09108f5ac3c1a6567730b5bbd0c847f8422ff4a2 (diff)
downloadswift-85c46a0fcce3495fe94397d53791628a8ccc74c4.zip
swift-85c46a0fcce3495fe94397d53791628a8ccc74c4.tar.bz2
Sluift: Allow blocking calls to be interrupted.
Change-Id: I3755e796fbddc038022bbf543c7b1c0529a9b0f9
Diffstat (limited to 'Sluift/SluiftGlobals.h')
-rw-r--r--Sluift/SluiftGlobals.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sluift/SluiftGlobals.h b/Sluift/SluiftGlobals.h
index 18a90c2..0d8e637 100644
--- a/Sluift/SluiftGlobals.h
+++ b/Sluift/SluiftGlobals.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 Remko Tronçon
+ * Copyright (c) 2013-2014 Remko Tronçon
* Licensed under the GNU General Public License.
* See the COPYING file for more information.
*/
@@ -9,10 +9,11 @@
#include <Sluift/LuaElementConvertors.h>
#include <Swiften/EventLoop/SimpleEventLoop.h>
#include <Swiften/Network/BoostNetworkFactories.h>
+#include <signal.h>
namespace Swift {
struct SluiftGlobals {
- SluiftGlobals() : networkFactories(&eventLoop) {}
+ SluiftGlobals() : networkFactories(&eventLoop), interruptRequested(0) {}
int timeout;
bool debug;
@@ -20,5 +21,6 @@ namespace Swift {
SimpleEventLoop eventLoop;
BoostNetworkFactories networkFactories;
int coreLibIndex;
+ sig_atomic_t interruptRequested;
};
}