Change baseband, RSSI threads to be more RAII.

This commit is contained in:
Jared Boone 2016-06-24 15:34:49 -07:00
parent 2b7e763619
commit f8a473d56b
6 changed files with 39 additions and 17 deletions

View file

@ -30,7 +30,8 @@
class BasebandThread : public ThreadBase {
public:
Thread* start(const tprio_t priority);
BasebandThread(const tprio_t priority);
~BasebandThread();
void on_message(const Message* const message);
@ -41,6 +42,8 @@ public:
}
private:
static Thread* thread;
BasebandProcessor* baseband_processor { nullptr };
BasebandConfiguration baseband_configuration;