Skip to content

proposal: "runtime/sync" package #712

@niaow

Description

@niaow

In order to use interrupts to implement wakeup from async operations, we need some high-level synchronization primitives to be available to the user. In the #606 experiment, a condition variable was added to a new package called machine/sync, as can be seen here.

Some remaining questions for this are:

  1. What primitives are needed for common use cases?
  2. What should this package be called (machine/sync was the first thing that came to mind, but it isn't necessarily that great)?

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