ref: ea020690dfaacd85ca06ed17f7b3651de20132e7
parent: cb85a03cb45a25936ce0afaa17651636ca566606
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jul 24 19:23:38 EDT 2017
Add fallback ncpu for all OSes. It just returns a hard-coded value, but that should be good enough for correctness.
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -3,6 +3,9 @@
hookstd.myr # install thread hooks
mutex.myr # fallback, for unimplemented platforms
+ #generic fallbacks
+ ncpu.myr
+
# linux impl of basic thread primitives
#condvar+linux.myr
mutex+linux.myr