Skip to content

Commit

Permalink
bugfix: missing stop() method on BufferingAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed May 8, 2015
1 parent d163f5d commit 4a9893b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/BufferingAgent.h
Expand Up @@ -37,6 +37,7 @@ class BufferingAgent : public QThread
~BufferingAgent();

void run();
void stop();

void getData(DataBlobHash& hash);

Expand Down
6 changes: 6 additions & 0 deletions src/lib/src/BufferingAgent.cpp
Expand Up @@ -35,6 +35,12 @@ void BufferingAgent::run() {
}
}

void BufferingAgent::stop()
{
_halt = true;
quit();
}

void BufferingAgent::getData(BufferingAgent::DataBlobHash& hash) {
// spin until we have data
do{}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/src/BufferingDataClient.cpp
Expand Up @@ -9,7 +9,7 @@ namespace lofar {
template<class DataClientType>
BufferingDataClient<DataClientType>::BufferingDataClient(const ConfigNode& configNode, const DataTypes& types, const Config* config)
: DataClientType(configNode, types, config)
, _agent(boost::bind(&DataClientType::getNext, this))
, _agent(boost::bind(&DataClientType::getData, this))
{
// start the thread running
_agent.start();
Expand Down

0 comments on commit 4a9893b

Please sign in to comment.