Finish python app after some processing in a C++ work() function

Hi,

I would like to find a way of saying to Python top_block that it should
stop processing and the application must finish.

One of the blocks of the application will be a custom block and after
gathering some samples it must tell python to stop.

Is there a direct way of doing that?

Regards,
Jorge

Yes, just let the block return the magic WORK_DONE (==-1) value.

Greetings,
Marcus

Marcus,

I read on the mailing list that the FG may not get killed if the FG uses
message passing. Is this already solved? Do I have to do anything else
when
using message passing?

Thanks in advance.

Hi,

That is what I call direct way =P

Thank you Marcus!

On Wed, Mar 4, 2015 at 2:30 AM, Jorge G. [email protected] wrote:

Marcus,

I read on the mailing list that the FG may not get killed if the FG uses
message passing. Is this already solved? Do I have to do anything else when
using message passing?

Thanks in advance.

This is solved on master, but it’s not in a released version, yet.

Tom