[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mutex-lock!

This page is part of the web mail archives of SRFI 18 from before July 7th, 2015. The new archives for SRFI 18 contain all messages, not just those from before July 7th, 2015.



> I'm wondering how to perform the equivalent of pthread_mutex_trylock.
> 
> Would
> 
>   (mutex-lock! m 0)
> 
> do it?

Yes.

> If so, I think the SRFI document should be updated to reflect that an
> attempt is made to lock the mutex also if the timeout is 0.

I'll update the description of mutex-lock! to reflect this.

Marc