nim-works / loony

A high throughput MPMC lock-free queue based on a paper by Giersch, Nolte et al implemented in pure Nim.
https://nim-works.github.io/loony/
MIT License
64 stars 4 forks source link

Introduce Futex for backpressure on Wards #20

Closed shayanhabibi closed 2 years ago

shayanhabibi commented 2 years ago

@disruptek the tward test seems to cork it; afaict this shouldnt be related to loony. Can you have a gander at it?

shayanhabibi commented 2 years ago

i'll do destroy procs and a ward test suite that doesn't trigger arc undefined behaviour and then merge it

shayanhabibi commented 2 years ago

Welp still haven't done the ward test suite but I have added and tested the destroy proc. I think a lot of it is unnecessary since the destroy proc also goes through the effort of decref'in any refs still in there but might as well.