2002-02-13 Jeffrey Stedfast <fejj@ximian.com>
authorJeffrey Stedfast <fejj@novell.com>
Wed, 13 Feb 2002 15:22:35 +0000 (15:22 -0000)
committerJeffrey Stedfast <fejj@novell.com>
Wed, 13 Feb 2002 15:22:35 +0000 (15:22 -0000)
commit40d039044433af829d3c678929465a9dafe828f8
tree8289303671e85683499c57f811a8b9d44e5a1523
parent59551c0c1fe7eb30a27166368be9497bf65f9b85
2002-02-13  Jeffrey Stedfast  <fejj@ximian.com>

* mono-mutex.[c,h]: New source files that thinly wrap all pthread
functions that take pthread_mutex_t and/or pthread_mutexattr_t
arguments for the sake of portability. Implements recursive
mutexes and pthread_mutex_timedlock.

* critical-sections.c:
* events.c:
* handles.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* timed-thread.c:
* wait.c: Use the mono-mutex wrapper portability functions/macros.

* pthread-compat.[c,h]: Replaced by mono-mutex.[c,h]

svn path=/trunk/mono/; revision=2376
12 files changed:
mono/io-layer/ChangeLog
mono/io-layer/Makefile.am
mono/io-layer/critical-sections.c
mono/io-layer/events.c
mono/io-layer/handles.c
mono/io-layer/mono-mutex.c [new file with mode: 0644]
mono/io-layer/mono-mutex.h [new file with mode: 0644]
mono/io-layer/mutexes.c
mono/io-layer/semaphores.c
mono/io-layer/threads.c
mono/io-layer/timed-thread.c
mono/io-layer/wait.c