# HG changeset patch # User Giulio Moro # Date 1440022959 -3600 # Node ID 8341df5e404be35ea0375a65c63892a9079caf24 # Parent a0e24514fc97b5e0e0c3ae8515e2014cbb7b8340 Refactoring diff -r a0e24514fc97 -r 8341df5e404b core/NetworkSend.cpp --- a/core/NetworkSend.cpp Wed Aug 19 23:14:37 2015 +0100 +++ b/core/NetworkSend.cpp Wed Aug 19 23:22:39 2015 +0100 @@ -7,7 +7,7 @@ //initialize the static members of NetworkSend bool NetworkSend::staticConstructed=false; std::vector NetworkSend::objAddrs(0); -AuxiliaryTask NetworkSend::transmitAudioTask=NULL; +AuxiliaryTask NetworkSend::sendDataTask=NULL; void transmitAudio(){ NetworkSend::sendAllData(); @@ -23,7 +23,7 @@ if(staticConstructed==true) return; staticConstructed=true; - transmitAudioTask = BeagleRT_createAuxiliaryTask(transmitAudio, 95, "transmitAudioTask"); //TODO: allow variable priority + sendDataTask = BeagleRT_createAuxiliaryTask(transmitAudio, 95, "sendDataTask"); //TODO: allow variable priority }; NetworkSend::NetworkSend() @@ -34,6 +34,7 @@ channel.activeBuffer=0; channel.readyToBeSent=false; } + NetworkSend::~NetworkSend(){ for(unsigned int n=0; n objAddrs; public: NetworkBuffer channel;