diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-09-15 04:25:41 +0800 |
---|---|---|
committer | Yohann Ferreira <yohann.ferreira@orange.fr> | 2011-09-16 07:10:20 +0800 |
commit | 8e8fef21ee978fa2ab58b0639a351ba17c66d5d4 (patch) | |
tree | 36556df326cdc37f87b00b37feaa1cd277629ed7 /src/net/tmwa/network.h | |
parent | d4584d81599f90b54cbc0fdd1c55b8ab0d5f0d68 (diff) | |
download | mana-8e8fef21ee978fa2ab58b0639a351ba17c66d5d4.tar.gz mana-8e8fef21ee978fa2ab58b0639a351ba17c66d5d4.tar.bz2 mana-8e8fef21ee978fa2ab58b0639a351ba17c66d5d4.tar.xz mana-8e8fef21ee978fa2ab58b0639a351ba17c66d5d4.zip |
Instead of SDL_mutex, use Mutex wrapper and MutexLocker for safety
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net/tmwa/network.h')
-rw-r--r-- | src/net/tmwa/network.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/tmwa/network.h b/src/net/tmwa/network.h index 2c19c218..b82d07b3 100644 --- a/src/net/tmwa/network.h +++ b/src/net/tmwa/network.h @@ -22,6 +22,8 @@ #ifndef NET_TA_NETWORK_H #define NET_TA_NETWORK_H +#include "utils/mutex.h" + #include "net/serverinfo.h" #include "net/tmwa/messagehandler.h" @@ -116,7 +118,7 @@ class Network std::string mError; SDL_Thread *mWorkerThread; - SDL_mutex *mMutex; + Mutex mMutex; typedef std::map<Uint16, MessageHandler*> MessageHandlers; typedef MessageHandlers::iterator MessageHandlerIterator; |