warzone2100/tools/lobbyserver_cpp
Giel van Schijndel a62d8fce62 * Move iteration interface out of class GameLobby into a new member class: GameLobby::iterator_interface
Previous implementation could hit a deadlock since every single const_iterator class attempted to acquire a scoped_readonlylock on the lobby's mutex. Since the ReadWriteMutex doesn't grant readonlylocks anymore when a writer is pending for a lock this could deadlock if you ever would need two iterators at the same time. Therefore we now only acquire one readonly lock through the iterator_interface class.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1673 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 11:27:58 +00:00
..
src * Move iteration interface out of class GameLobby into a new member class: GameLobby::iterator_interface 2007-05-21 11:27:58 +00:00
COPYING * Add _premature_ C++ testing lobby server 2007-05-15 20:30:22 +00:00