ocaml-multicore / kcas

Software Transactional Memory for OCaml
https://ocaml-multicore.github.io/kcas/
ISC License
107 stars 10 forks source link

Add `?backoff` to `Loc.compare_and_set` #164

Closed polytypic closed 9 months ago

polytypic commented 9 months ago

Loc.compare_and_set has a mutating retry loop, so it makes sense to include a backoff mechanism.

This PR also adds backoff when removing awaiters.