Changeset 18736 for branches/FACT++_lidctrl_usb/src
- Timestamp:
- 01/24/17 13:31:31 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FACT++_lidctrl_usb/src/lidctrl.cc
r18729 r18736 38 38 DimDescribedService fDim; 39 39 message_t fLastMessage; 40 boost::asio::deadline_timer fReadTimer; 40 41 41 42 void PrintMessage(const message_t msg) … … 126 127 } 127 128 } 129 ConnectionEstablished(); 130 } 131 132 void DoAsyncRead(const bs::error_code &error){ 128 133 AsyncRead(ba::buffer(fRecievedBytes, 2 * sizeof(complete_message_t)), 0, 0); 129 134 } … … 131 136 void ConnectionEstablished() 132 137 { 133 AsyncRead(ba::buffer(fRecievedBytes, 2 * sizeof(complete_message_t)), 0, 0); 138 fReadTimer.expires_from_now(boost::posix_time::milliseconds(1)); 139 fReadTimer.async_wait(boost::bind(&ConnectionLid::DoAsyncRead, this, dummy::error)); 134 140 } 135 141 … … 147 153 "|inner_speed[LSB]: " 148 154 "|outer_speed[LSB]: "), 149 fLastMessage() 155 fLastMessage(), 156 fReadTimer(ioservice) 150 157 { 151 158 SetLogStream(&imp);
Note:
See TracChangeset
for help on using the changeset viewer.