Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need help running thread SBCL

I am working some lisp code on sbcl in order to run function in mode daemon. The problem is when I use the function sb-thred:make-thread, for instance as follow:

(sb-thread:make-thread (lambda () (progn (sleep 1) (when t (print "background action")))))

I get the following error message:

Not supported in unithread builds. [Condition of type SIMPLE-ERROR]

What is wrong ? ... thanks for help.

like image 945
yannics Avatar asked Oct 18 '25 10:10

yannics


1 Answers

SBCL has threads disabled by default on Mac OS X. To check if SBCL is build with threads run in the repl

(member :sb-thread *features*)

If not, compile it from source (using your current SBCL). From the INSTALL

sh make.sh --with-sb-thread
like image 180
PuercoPop Avatar answered Oct 21 '25 14:10

PuercoPop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!