Changeset 20291
- Timestamp:
- 06/08/07 14:44:39 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/gadgeteer/gadget/DeviceServer.cpp
r19729 r20291 162 162 void DeviceServer::debugDump(int debugLevel) 163 163 { 164 vpr::Guard<vpr::Mutex> guard(mClientsLock); 164 vprASSERT(mClientsLock.test() && 165 "mClientsLock must be locked by the caller"); 165 166 166 167 vpr::DebugOutputGuard dbg_output( juggler/branches/2.2/modules/gadgeteer/gadget/DeviceServer.h
r19729 r20291 65 65 void removeClient(const std::string& host_name); 66 66 67 void debugDump(int debug_level); 67 /** 68 * Dumps the state of the clients as debug output. 69 * 70 * @pre \c mClientsLock is locked by the calling thread. 71 * 72 * @param debugLevel The debug output level to use for the output. 73 * 74 * @see lockClients() 75 * @see unlockClients() 76 */ 77 void debugDump(int debugLevel); 68 78 69 79 std::string getName() { return mName; } juggler/branches/2.2/modules/gadgeteer/gadget/RemoteInputManager.cpp
r20200 r20291 449 449 for ( std::vector<DeviceServer*>::iterator j = mDeviceServers.begin(); j != mDeviceServers.end(); j++ ) 450 450 { 451 (*j)->lockClients(); 451 452 (*j)->debugDump(debug_level); 453 (*j)->unlockClients(); 452 454 } 453 455 }
