[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Wait for another thread to finish in the top block?
From: |
Dekst |
Subject: |
[Discuss-gnuradio] Wait for another thread to finish in the top block? |
Date: |
Fri, 22 Jun 2012 11:00:30 +0800 (CST) |
Hi, All,
For OFDM demodulation, in gnuradio/gr-digital/python/ofdm.py, a _queue_watcher_thread is defined. It returns whether a packet is received correctly, what's the sequence number, and so on.
I'm using gnuradio/gr-digital/examples/ofdm/benchmark_rx.py to decode samples saved by uhd/host/rx_samples_to_file.
Thoses samples are processed by C++ modules and organized into packets enqueued in rcvd_pktq, waiting for _queue_watcher_thread to retreive them.
I found that sometimes the benchmark_rx.py terminates before the rcvd_pktq is empty, that is, the _queue_watcher_thread hasn't finished all packets in the rcvd_pktq but the main program is terminated. Maybe all samples in the file have been processed by C++ modules and thus the main program terminates.
How can I make the main program wait for the
_queue_watcher_thread??? Make sure all packets in the queue are processed.
Thanks a lot!
Pei
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] Wait for another thread to finish in the top block?,
Dekst <=