From ac2147483cfcbb6f01123d65e67b7bb363bddc8f Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 28 Nov 2008 18:45:57 +0000 Subject: added some windows support (not working now) try to build with following Options: NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOROUTING;NOSIGNALCONTROLLER --- src/connectionList.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/connectionList.cpp') diff --git a/src/connectionList.cpp b/src/connectionList.cpp index 5292529..d272a03 100644 --- a/src/connectionList.cpp +++ b/src/connectionList.cpp @@ -81,6 +81,7 @@ void ConnectionList::addConnection(ConnectionParam &conn, u_int16_t mux ) const ConnectionMap::iterator ConnectionList::getEnd() { + Lock lock(mutex_); return connections_.end(); } @@ -89,6 +90,13 @@ ConnectionMap::iterator ConnectionList::getBeginUnlocked() return connections_.begin(); } +const ConnectionMap::iterator ConnectionList::getBegin() +{ + Lock lock(mutex_); + return connections_.begin(); +} + + ConnectionMap::iterator ConnectionList::getEndUnlocked() { return connections_.end(); -- cgit v1.2.3