> On Tue, Nov 22, 2011 at 9:11 PM, Jordan Otomo <jotomo@skyboximaging.com>wrote:
>
>> Thanks Josh and Tom for the info. Tom, I was unable to profile my
>> flowgraphs using your suggested method. For some reason, the head block
>> does not predictably stop the program. For example, if I specify 15 items
>> it will return immediately (as expected), but if I use 16 items it will
>> hang.
>>
>
> That sounds like some work function isn't behaving correctly. Besides
Perhaps we are missing a coding guide on how to write work functions.
Helpful tips like:
If your work function blocks, it must block in an interruptible call,
have an interruption point, or manually check for thread interrupted.
The start method should be used to cleanup state before work is called.
Things can get hairy of your last work was interrupted and state
variables were left kind of "funky".
And other useful tidbits... I bet many blocks in gr dont follow the
coding guidelines that I just made up, and hence, may have issues with
lock/unlock working properly. :-)
-Josh
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment