Changeset 3350 for plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBoostNetworking/src/HTTP/Message.cpp
- Timestamp:
- 02/01/10 15:42:38 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBoostNetworking/src/HTTP/Message.cpp
r1086 r3350 82 82 83 83 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 84 unsigned int 85 Message::getMessageId() const 86 { 87 static Zen::Threading::SpinLock sm_spinLock; 88 static unsigned int sm_lastId = 0; 89 90 Zen::Threading::xCriticalSection lock(sm_spinLock); 91 return ++sm_lastId; 92 } 93 94 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 84 95 } // namespace HTTP 85 96 } // namespace AppServer
