Sunday, November 12, 2017

[Discuss-gnuradio] Problem to handle message port in thread

I'm getting an error while trying to use an output message port with a thread. The thread is responsible for executing function check_buff(). It seems to return the error bellow because the message port inside the function was not initialized yet. Firstly, the thread was started at the constructor. According to this link, starting at the constructor is the root of the problem and one should start the thread in the start function of the block (bool start()). So I did but I'm still getting the same error. The port still does not exist when the thread starts.

How do I guarantee the existence of the port before starting the thread?

Figure 1: Error


Figure 2: Function used by thread.

No comments:

Post a Comment