Lisp HUG Maillist Archive

lock oneself?

Hi,

I want to emulate aqcuire/release on locks. Traditionally, acquire called  
on acquired lock in the same process sleeps until the lock is released;  
other lisp (and non-lisp) environments do just that.

In Lispworks, I can't find a way to sleep on my own lock.  I need it for  
the following scenario:

The reader fetches the last item from the queue. After that, it raises a  
semaphore, and waits on the semaphore until the writer opens it.

How can I code it with Lispworks locks?

David

-- 
 


Re: lock oneself?


> I want to emulate

It's the end of a very long day. In simpler words: are there semaphores in  
Lispworks, or should I implement them on top of locks?

David


Updated at: 2020-12-10 08:49 UTC