Needs pause intrinsic/wrapper in druntime, but where?
Stefan Koch
uplink.coder at googlemail.com
Sun Oct 6 21:17:16 UTC 2019
On Sunday, 6 October 2019 at 18:50:56 UTC, Manu wrote:
> 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...
>
> Ideas?
> I'm leaning towards core.atomic.
intrinsics go into core.bitOp
Atomic Load and Store are there as well :)
More information about the Digitalmars-d
mailing list