discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: André Gomes
Subject: [Discuss-gnuradio] Problem to handle message port in thread
Date: Sun, 12 Nov 2017 18:01:59 -0200

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
Inline images 2

Figure 2: Function used by thread.
Inline images 1

Regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]