Changeset 46:e57735492bf8 in xplra for src
- Timestamp:
- 02/16/13 09:16:54 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/plugin/src/xplra
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/plugin/src/xplra/HotkeyHandler.cc
r45 r46 75 75 { 76 76 for(size_t i = 0; i<numHotkeys; ++i) { 77 Util::debug("handleKey: %04x\n", hotkeys[i]);78 79 77 if (hotkeys[i]==code) { 80 78 pressed[i] = 1; … … 144 142 if ( (flags&xplm_ControlFlag)!=0 ) code |= Protocol::HOTKEY_MODIFIER_CONTROL; 145 143 146 Util::debug("code=0x%04x\n", code);147 148 144 bool handled = false; 149 145 -
src/plugin/src/xplra/ListenThread.h
r44 r46 105 105 106 106 inline ListenThread::ListenThread(Globals& globals) : 107 Thread(true),108 107 globals(globals), 109 108 quitEvent(&waiter) -
src/plugin/src/xplra/MessageWindow.cc
r42 r46 83 83 int screenHeight = XPLMGetDatai(heightDataRef); 84 84 85 Util::debug("hu.varadiistvan.xplra.MessageWindow: screenWidth=%d, screenHeight=%d\n",86 screenWidth, screenHeight);85 // Util::debug("hu.varadiistvan.xplra.MessageWindow: screenWidth=%d, screenHeight=%d\n", 86 // screenWidth, screenHeight); 87 87 88 88 left = 50; right = screenWidth - left; -
src/plugin/src/xplra/ServerThread.cc
r45 r46 69 69 instancesMutex.lock(); 70 70 for(instances_t::iterator i = instances.begin(); i!=instances.end(); ++i) { 71 (*i)->quit(); 72 } 71 ServerThread* thread = *i; 72 thread->quit(); 73 thread->join(); 74 delete thread; 75 } 76 instances.clear(); 73 77 instancesMutex.unlock(); 74 78 } … … 91 95 ServerThread::ServerThread(ListenThread& listenThread, 92 96 RequestQueue& requestQueue, LocalAcceptor& acceptor) : 93 Thread(true),94 97 listenThread(listenThread), 95 98 requestQueue(requestQueue), … … 122 125 delete i->second; 123 126 } 124 125 instancesMutex.lock();126 instances.erase(this);127 instancesMutex.unlock();128 127 } 129 128 -
src/plugin/src/xplra/plugin.cc
r44 r46 116 116 if (listenThread!=0) { 117 117 listenThread->quit(); 118 listenThread->join(); 119 delete listenThread; 118 120 listenThread = 0; 119 121 }
Note:
See TracChangeset
for help on using the changeset viewer.