Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2008, 12:05:03 AM (15 years ago)
Author:
landauf
Message:

merged revisions 2111-2170 from objecthierarchy branch back to trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/network/packet/Packet.h

    r2087 r2171  
    2929#define NETWORKPACKET_H
    3030
    31 #include "../NetworkPrereqs.h"
     31#include "network/NetworkPrereqs.h"
    3232
    3333#include <map>
    3434#include <enet/enet.h>
     35#include <boost/thread/recursive_mutex.hpp>
    3536
    3637#include "util/Integers.h"
    3738
    38 namespace network {
     39namespace orxonox {
    3940
    4041namespace packet{
     
    9293    bool bDataENetAllocated_;
    9394  private:
    94     static std::map<ENetPacket *, Packet *> packetMap_;
     95    static std::map<size_t, Packet *> packetMap_;
     96    //! Static mutex for any packetMap_ access
     97    static boost::recursive_mutex packetMap_mutex;
    9598    ENetPacket *enetPacket_;
    9699};
     
    98101} //namespace packet
    99102
    100 } //namespace network
     103} //namespace orxonox
    101104
    102105#endif
Note: See TracChangeset for help on using the changeset viewer.