Skip to content

Store ~Task in thread local storage instead of ~Scheduler #6855

Closed
@brson

Description

@brson

The current design places a ~Scheduler in TLS. This turned out to be a bad idea because now I want to have tasks that don't use a scheduler. Instead we should place ~Task in TLS. Once we do that we'll need a place to store the ~Scheduler instance when running in scheduler context, so we'll have to use a ~Task, making the scheduler itself a non-green thread task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions