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

Fixed library requiring importation of std/atomics by user #12

Closed shayanhabibi closed 2 years ago

shayanhabibi commented 2 years ago

The example provided would not work without the user importing std/atomics. The templates fetchAddHead and fetchAddTail were changed to procedures to amend this without polluting the users name space.