Changeset 196 for code/branches/network/src/network/PacketBuffer.h
- Timestamp:
- Nov 11, 2007, 5:11:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/PacketBuffer.h
r188 r196 19 19 #include <boost/bind.hpp> 20 20 #include <boost/thread/mutex.hpp> 21 #include <boost/thread/mutex.hpp>22 21 23 //this is needed in order to make the packetbuffer threadsafe24 boost::mutex networkPacketBufferMutex;25 22 26 23 namespace network{ 24 27 25 28 26 struct PacketEnvelope{ … … 47 45 // pushs a packet to the queue 48 46 bool push(ENetPacket *pck); 47 49 48 private: 50 49 QueueItem *first; … … 52 51 bool closed; 53 52 54 //make it threadsafe55 // boost::mutex mutex;56 53 }; 57 54
Note: See TracChangeset
for help on using the changeset viewer.