work in progress
Experiment - work in progress...
Diff: RefRX.h
- Revision:
- 5:444939b4790a
- Parent:
- 4:87d3a005c4de
--- a/RefRX.h Sat Jul 20 11:26:05 2013 +0000 +++ b/RefRX.h Sat Jul 20 12:36:22 2013 +0000 @@ -22,17 +22,20 @@ static int _listen_port; static int _destination_control_port; - static Thread _RX_thread; - static void _RX_thread_cycle (void const *args); + static Thread* _RX_thread; public: + + /** Thread procedure + */ + static void worker (void const *args); /** Initialization procedure. * @param listen_port * @param destination_control_port remote port for the transmission control. * @param ref1 pilot references to be overwritten. */ - static void init (const int listen_port, const int destination_control_port); + static void init (const int listen_port, const int destination_control_port, Thread & worker_thread); /** Get references and store to parameters. * Involves the use of a Mutex with trylock().