add ctor for worker class in thread_pool

This commit is contained in:
Andre Puschmann 2019-02-20 15:24:59 +01:00
parent 4204321fde
commit afb591ee97
2 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,7 @@ public:
class worker : public thread
{
public:
worker();
void setup(uint32_t id, thread_pool *parent, uint32_t prio=0, uint32_t mask = 255);
void stop();
uint32_t get_id();

View File

@ -35,8 +35,9 @@
#define USE_QUEUE
namespace srslte {
thread_pool::worker::worker() : my_id(0), running(false), my_parent(NULL) {}
void thread_pool::worker::setup(uint32_t id, thread_pool *parent, uint32_t prio, uint32_t mask)
{
my_id = id;