(loc_RunThread, empth_init, empth_threadMain, empth_yield)

(empth_select, empth_sleep, empth_wait_for_signal)
(empth_sem_wait) [EMPTH_W32]: Add the ability to wait additional
event in loc_RunThread() when acquiring the hThread mutex.

(empth_rwlock_t, empth_rwlock_create, empth_rwlock_destroy)
(empth_rwlock_wrlock, empth_rwlock_rdlock, empth_rwlock_unlock): New.

(empth_rwlock_t, empth_rwlock_create, empth_rwlock_destroy)
(empth_rwlock_wrlock, empth_rwlock_rdlock, empth_rwlock_unlock)
[EMPTH_W32]: WIN32 implementation.

(empth_rwlock_t, empth_rwlock_create, empth_rwlock_destroy)
(empth_rwlock_wrlock, empth_rwlock_rdlock, empth_rwlock_unlock)
(lwp_rwlock, lwp_rwlock_create, lwp_rwlock_destroy)
(lwp_rwlock_wrlock, lwp_rwlock_rdlock, lwp_rwlock_unlock)
[EMPTH_LWP]: LWP implementation.

(empth_rwlock_t, empth_rwlock_create, empth_rwlock_destroy)
(empth_rwlock_wrlock, empth_rwlock_rdlock, empth_rwlock_unlock)
[EMPTH_POSIX]: pthread implementation.
This commit is contained in:
Ron Koenderink 2007-01-15 12:45:35 +00:00
parent 8c65fbc2be
commit 71e0f98825
6 changed files with 409 additions and 14 deletions

View file

@ -29,7 +29,7 @@
*
* Known contributors to this file:
* Sasha Mikheev
* Markus Armbruster, 2006
* Markus Armbruster, 2006-2007
*/
#include <config.h>
@ -149,3 +149,33 @@ empth_sem_wait(empth_sem_t *sm)
{
lwpWait(sm);
}
empth_rwlock_t *
empth_rwlock_create(char *name)
{
return lwp_rwlock_create(name);
}
void
empth_rwlock_destroy(empth_rwlock_t *rwlock)
{
lwp_rwlock_destroy(rwlock);
}
void
empth_rwlock_wrlock(empth_rwlock_t *rwlock)
{
lwp_rwlock_wrlock(rwlock);
}
void
empth_rwlock_rdlock(empth_rwlock_t *rwlock)
{
lwp_rwlock_rdlock(rwlock);
}
void
empth_rwlock_unlock(empth_rwlock_t *rwlock)
{
lwp_rwlock_unlock(rwlock);
}