ruricolist / serapeum

Utilities beyond Alexandria
MIT License
415 stars 41 forks source link

count-cpus fails with :MEMOIZE NIL #156

Closed Gleefre closed 1 year ago

Gleefre commented 1 year ago
* (serapeum:count-cpus :memoize nil)

debugger invoked on a UNDEFINED-FUNCTION @52A00904 in thread
#<THREAD tid=34684 "main thread" RUNNING {1004958113}>:
  SERAPEUM:NIX is a macro, not a function.

This seems to be caused by threads.lisp being loaded before the control-flow.lisp file, resulting in serapeum:nix being defined after the serapeum:count-cpus where it was supposed to be a function.

ruricolist commented 1 year ago

Thanks for reporting this. I've pushed up a fix. If you have time, I'd appreciate knowing if you're still seeing the bug.

Gleefre commented 1 year ago

I don't see the bug anymore