comparison core/NetworkSend.cpp @ 132:e24c531220ee scope-refactoring

Added some sort of synchronization, not working great though
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 27 Aug 2015 01:42:04 +0100
parents ff28e56e5b7e
children
comparison
equal deleted inserted replaced
131:ff28e56e5b7e 132:e24c531220ee
191 } 191 }
192 }; 192 };
193 int NetworkSend::getChannelNumber(){ 193 int NetworkSend::getChannelNumber(){
194 return channel.channelNumber; 194 return channel.channelNumber;
195 }; 195 };
196
197 int NetworkSend::getTimestamp(){
198 return channel.buffers[channel.readBuffer][channel.headerTimestampIndex];
199 }
196 200
197 void NetworkSend::sendData(){ 201 void NetworkSend::sendData(){
198 if(channel.enabled==false) 202 if(channel.enabled==false)
199 return; 203 return;
200 while(channel.readyToBeSent[channel.readBuffer]==true){ 204 while(channel.readyToBeSent[channel.readBuffer]==true){