Skip to content

Merge our thread code back into std? #45

@AzureMarker

Description

@AzureMarker

Some context: #44

  • Pros
    1. Keeps us up-to-date with std.
    2. Not duplicating code. We could define an extension trait for 3ds specific data like affinity.
    3. Other code can still use std threads (though we should generally avoid this since the 3ds CPU works differently).
  • Cons
    1. This allows 3rd party code to use threads, which might break since the default core is not preemptive (and we only get one thread on the preemptive system core).
      • TODO: if it's not preemptive, what is priority used for? Research how the application core scheduler works.
    2. We can't directly link std to libctru. So we'd need to pass the extra data (ex. affinity) through pthread or something.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions