nqp
nqp copied to clipboard
Make some enhancements to atomic integers
- Give nqp native refs to allow for usage of atomic ops in nqp.
- Introduce a semaphore-like
Counterthat performs comparably. - I'm getting tired of writing every atomic op twice in Rakudo. Maybe it's time to give the JVM and JS backend atomic int ops?
- Let Rakudo building at all be the test of native refs, since they will be required at that point in time soon enough.
-
Counterneeds sanity tests in its own right. Swapping outSemaphoreand itsacquire/releasefor aCounterand itswant_pred/need_succint/spec/S17-lowlevel/semaphore.tpasses OK. - Takes the place of https://github.com/Raku/nqp/pull/774.
It would be really nice if someone could continue the work of Kaiepi
@patrickbkr @ab5tract @timo @niner