diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-11-28 18:45:57 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-11-28 18:45:57 +0000 |
commit | ac2147483cfcbb6f01123d65e67b7bb363bddc8f (patch) | |
tree | d7812a08b15dbc54df6f97b7b64ae913972f309b /src/connectionList.cpp | |
parent | some more type cleanups and missig NOCRYPT defines (diff) |
added some windows support (not working now)
try to build with following Options:
NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOROUTING;NOSIGNALCONTROLLER
Diffstat (limited to 'src/connectionList.cpp')
-rw-r--r-- | src/connectionList.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |