Needs pause intrinsic/wrapper in druntime, but where?

Manu turkeyman at
Sun Oct 6 18:50:56 UTC 2019

I need a pause() function in druntime (wrap x86 `pause`/arm `yield`,
etc), but it's not clear where to put it...
Candidates are:
  core.atomic - seems odd, but it's almost exclusively used when
implementing spin locks
  core.thread - sounds appropriate, but doesn't really mean anything wrt threads
  core.sync.??? - no appropriate sub-package appears to exist...

I'm leaning towards core.atomic.

More information about the Digitalmars-d mailing list