Skip to content

Improve SystemHandle API for async middlewares #24

Description

@mxgrey

The current soss::SystemHandle API assumes that the underlying middleware does not run async, but many middlewares do run async, and that feature should be leveraged appropriately.

The current API which uses SystemHandle::spin_once() should be changed to:

/// Tell the middleware to begin spinning
void spin();

/// Tell the middleware to interrupt its spinning
void interrupt();

This way every middleware can use its internal faculties to prevent busy waiting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions