Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topology completion API #97

Open
guruofquality opened this issue Jul 14, 2016 · 0 comments
Open

Topology completion API #97

guruofquality opened this issue Jul 14, 2016 · 0 comments

Comments

@guruofquality
Copy link
Contributor

Consider an API addition that allows a single block (or blocks) within a topology to indicate that that the topology execution should be complete. The existing Topology::waitInactive() call could exit immediately when this occurs - as opposed to waiting for the max idle time.

The primary use will be for a control block in a design to exit upon some error condition, forced graceful exit, or task completion. This could also be useful for some unit tests, but waiting for idle is still probably best for most situations.

Purposed API:

class Block
{
//intentional completion
void complete(void);

//complete with an exception
void complete(const std::exception_ptr &ex);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant