discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Multithreading in GR blocks


From: Sylvain Munaut
Subject: Re: Multithreading in GR blocks
Date: Mon, 13 Apr 2020 19:58:14 +0200

The m_finished thing only works if you're not using any blocking calls.

But you're using `accept` and `recv` etc ... all calls that can block
forever until they get something.
You need to use `select` on the file descriptors while waiting for
events / data and set a timeout on that select so your code has a
periodic opportunity to check the m_finished flag.

Cheers,

    Sylvain



reply via email to

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