diff --git a/lib/include/srslte/common/thread_pool.h b/lib/include/srslte/common/thread_pool.h index 865fc10d9..c6b971371 100644 --- a/lib/include/srslte/common/thread_pool.h +++ b/lib/include/srslte/common/thread_pool.h @@ -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(); diff --git a/lib/src/common/thread_pool.cc b/lib/src/common/thread_pool.cc index 17b539232..1892878fd 100644 --- a/lib/src/common/thread_pool.cc +++ b/lib/src/common/thread_pool.cc @@ -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;