summaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_kqueue.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-08 22:20:05 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-08 22:20:05 +0100
commitdd43a49fc43c1ec07b41e19a8bd3649fadccad70 (patch)
tree18beafde2663779f5c3f5de12ceb8da948594015 /src/socketengines/socketengine_kqueue.cpp
parented6176383eef5de23a62c7de70b58b8d80239005 (diff)
Move variables in socketengines
Move timespec to DispatchEvents() in kqueue, there is no reason for it to be a member variable
Diffstat (limited to 'src/socketengines/socketengine_kqueue.cpp')
-rw-r--r--src/socketengines/socketengine_kqueue.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp
index 53bd741f0..517451237 100644
--- a/src/socketengines/socketengine_kqueue.cpp
+++ b/src/socketengines/socketengine_kqueue.cpp
@@ -37,9 +37,6 @@ private:
/** These are used by kqueue() to hold socket events
*/
std::vector<struct kevent> ke_list;
- /** This is a specialised time value used by kqueue()
- */
- struct timespec ts;
public:
/** Create a new KQueueEngine
*/
@@ -203,6 +200,7 @@ void KQueueEngine::OnSetEvent(EventHandler* eh, int old_mask, int new_mask)
int KQueueEngine::DispatchEvents()
{
+ struct timespec ts;
ts.tv_nsec = 0;
ts.tv_sec = 1;