Re: SBCL Threads: how to wait for a thread to exit?



"John" == John A R Williams <J.A.R.Williams@xxxxxxxxxxx> writes:

John> Shyamal,

John> You might either want to use a lock and state variable or
John> for more flexibility and efficiency look at the
John> waitqueue/condition variable stuff - see

Shyamal> [....]
Shyamal> However, I am unable to see an obvious way to do a
Shyamal> blocking wait for a thread to finish....many google
Shyamal> searches got me nowhere.
Shyamal> [....]
Shyamal> could see, and the underlying pthread join seems
Shyamal> unexposed to the lisp programmer).

Hi John,

Thanks for the response. I actually do use waitqueues in my code. I
was hoping to find was a "primitive" thread join operation that waits
for a thread to terminate. Your response strengthens my suspicion that
SBCL does not provide this.

Right now I'm actually doing exactly what you suggest :)

Best regards,
Shyamal
.