digitalmars.D - Needs pause intrinsic/wrapper in druntime, but where?
- Manu (9/9) Oct 06 2019 I need a pause() function in druntime (wrap x86 `pause`/arm `yield`,
- Stefan Koch (3/14) Oct 06 2019 intrinsics go into core.bitOp
- Adam D. Ruppe (2/3) Oct 06 2019 pause has nothing to do with bits though...
- Stefan Koch (3/6) Oct 06 2019 neither does atomic load and store.
- Manu (4/11) Oct 06 2019 Too late the party, it's in core.atomic. I reckon that's the most
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.
Oct 06 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 :)
Oct 06 2019
On Sunday, 6 October 2019 at 21:17:16 UTC, Stefan Koch wrote:intrinsics go into core.bitOppause has nothing to do with bits though...
Oct 06 2019
On Sunday, 6 October 2019 at 21:36:49 UTC, Adam D. Ruppe wrote:On Sunday, 6 October 2019 at 21:17:16 UTC, Stefan Koch wrote:neither does atomic load and store. or writing to input/output ports.intrinsics go into core.bitOppause has nothing to do with bits though...
Oct 06 2019
On Sun, Oct 6, 2019 at 2:50 PM Stefan Koch via Digitalmars-d <digitalmars-d puremagic.com> wrote:On Sunday, 6 October 2019 at 21:36:49 UTC, Adam D. Ruppe wrote:Too late the party, it's in core.atomic. I reckon that's the most sensible location.On Sunday, 6 October 2019 at 21:17:16 UTC, Stefan Koch wrote:neither does atomic load and store. or writing to input/output ports.intrinsics go into core.bitOppause has nothing to do with bits though...
Oct 06 2019