Guard against other threads unwinding block-on-io-descriptor.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Fri, 4 May 2012 20:58:14 +0000 (13:58 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Fri, 4 May 2012 20:58:14 +0000 (13:58 -0700)
commit7996450cfd3890ac34c89975beea0355ffb2dcbc
tree96b62ed850cc20a2e70775d2850bbeeea8084b81
parentfc65140bfd8f2ebf76edd81dd28ac4183d473e52
Guard against other threads unwinding block-on-io-descriptor.

This only arises when another thread uses within-continuation to
unwind block-on-io-descriptor.  Such an unwinding can leave the
console-thread waiting for nothing.  With no other io-registrations
nor runnable threads, the runtime busy-waits.
src/runtime/thread.scm