Re: SBCL Threads: how to wait for a thread to exit?
- From: Shyamal Prasad <shyamalprasad@xxxxxxxxxxx>
- Date: Sun, 16 Jul 2006 16:13:28 GMT
"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
.
- References:
- SBCL Threads: how to wait for a thread to exit?
- From: Shyamal Prasad
- Re: SBCL Threads: how to wait for a thread to exit?
- From: Dr. John A.R. Williams
- SBCL Threads: how to wait for a thread to exit?
- Prev by Date: Re: Amazon used lisp & C exclusively?
- Next by Date: Playing with pathnames
- Previous by thread: Re: SBCL Threads: how to wait for a thread to exit?
- Next by thread: loop with an optional limit?
- Index(es):