diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-01 01:40:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 7794e6271fea1e0c0af9eacc99603f15a2f8ef79 (patch) | |
tree | 084996965982a65bbac403bc13c874cb98855b99 /src/net/ea/network.h | |
parent | 18ff3c4430f6dfad38cf2da7c417315eba53a0fc (diff) | |
download | manaverse-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.gz manaverse-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.bz2 manaverse-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.xz manaverse-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.zip |
add ability to delay network messages dispatch.
Diffstat (limited to 'src/net/ea/network.h')
-rw-r--r-- | src/net/ea/network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/network.h b/src/net/ea/network.h index 84a4b0635..d9847d55d 100644 --- a/src/net/ea/network.h +++ b/src/net/ea/network.h @@ -67,6 +67,9 @@ class Network notfinal void fixSendBuffer(); + void pauseDispatch() + { mPauseDispatch = true; } + // ERROR replaced by NET_ERROR because already defined in Windows enum { @@ -106,6 +109,7 @@ class Network notfinal SDL_mutex *mMutexIn; SDL_mutex *mMutexOut; int mSleep; + bool mPauseDispatch; }; } // namespace Ea |