[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] stop() the flow graph
From: |
Sylvain Munaut |
Subject: |
Re: [Discuss-gnuradio] stop() the flow graph |
Date: |
Thu, 13 Nov 2014 12:50:51 +0100 |
> I can't use sleep() here; because there're other threads as well in the
> program which need to be executed as well. Sleep() stop the execution of
> program; which is not a solution.
No it doesn't. It pauses the execution of the _THREAD_ ... other
threads (both those created by gnuradio to actually run the flow graph
and whatever other thread you have in your application) will keep
running.
Besides you're missing the point ... the main thing to notice in my
original reply is run() vs start(). One is blocking, the other isn't.