You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #24 on June 14, 2021 13:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:This way every middleware can use its internal faculties to prevent busy waiting.
Beta Was this translation helpful? Give feedback.
All reactions