[Mono-list] Re: mono, porting to non glibc systems, and pthread mutex implementations...

Dick Porter dick@ximian.com
Wed, 13 Feb 2002 10:22:08 +0000

On Tue, Feb 12, 2002 at 11:18:07PM -0500, Jeffrey Stedfast wrote:
> I've also noticed that a function named pthread_mutex_timedlock() is
> being used. What does this function do? I can't find it in any
> documentation I have on pthreads...

It gives up waiting for the mutex after the specified number of nanoseconds
have elapsed.

> I've noticed that configure.in will AC_WARN() if it's not there and that
> there is a #define specifying whether or not it is available but I did
> not see checks around the code that uses pthread_mutex_timedlock().
> Perhaps I missed something...

There is an implementation of pthread_mutex_timedlock() that is
conditionally compiled in mono/io-layer/pthread-compat.c

> Anyways, if someone would like to enlighten me as to what it does,
> perhaps I can hack mono_mutex_t to support that operation...
> Also: where should these files go? any preferences or shall I dump them
> in mono/metadata/?


I'd appreciate a preview patch beforehand, too :)

> Jeff

- Dick