Blame view

src/helpers/Worker.cc 312 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Worker.cc
 *
 *  Created on: 20 janv. 2013
 *      Author: taz
 */

#include "Worker.hh"

namespace AMDA {
namespace Helpers {

Worker::Worker() :
		_running(false) {

}

Worker::~Worker() {
	  _running=false;
	  _taskList.push(NULL);
	  _thread.join();
}

} /* namespace Helpers */
} /* namespace AMDA */