Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

NSOperationQueue is suboptimal (but it does work) #869

@DHowett-MSFT

Description

@DHowett-MSFT
  • Busy wait if an operation with dependencies is added, but the dependencies are not yet added.
  • Queue does not subscribe to notifications for operation status.
    • isReady could help avoid the busy wait.
  • We only support three priority tiers out of the five which are defined.
  • The magic inside RunOperationFromLists is arcane and black.
    • Takes the source list. Drops it down, flips it and reverses it.
    • That new list is the "pending" list. Operations are run preferentially from the pending list.
    • The pending list is unceremoniously destroyed (via memset) at the start of the next queue thread iteration.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions