[Armedbear-devel] Non-zero timeouts CL:SLEEP and THREADS:OBJECT-WAIT below the timer Planck limit interpolated as a nanosecond

Mark Evenson evenson at panix.com
Tue Apr 22 10:50:58 UTC 2014


On 19 Apr 2014, at 19:53, James M. Lawrence <llmjjmll at gmail.com> wrote:

[…]
> What should bt:thread-yield do? (sleep 0) or (sleep 0.01) or (sleep
> least-positive-single-float) or something else?

ABCL should implement a THREADS:YIELD primitive mapping directly to
java.lang.Thread.yield().  

In the intermin, impelement bt:thread-yield as 

	(java:jcall "yield" (java:jstatic "currentThread" "java.lang.Thread”))

-- 
"A screaming comes across the sky.  It has happened before but there is nothing 
to compare to it now."






_______________________________________________
Armedbear-devel mailing list
Armedbear-devel at common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel



More information about the armedbear-devel mailing list