1
/* Copyright (c) 1998, 1999 Thorsten Kukuk, Germany
3
This file is part of ypbind-mt.
5
Author: Thorsten Kukuk <kukuk@suse.de>
7
The ypbind-mt are free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the
10
License, or (at your option) any later version.
12
ypbind-mt is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
General Public License for more details.
17
You should have received a copy of the GNU General Public
18
License along with ypbind-mt; see the file COPYING. If not,
19
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
Boston, MA 02111-1307, USA. */
31
pthread_mutex_t mutex;
32
pthread_cond_t lock_free;
35
#define PTHREAD_RDWR_INITIALIZER \
36
{0, 0, 0, PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER}
38
int pthread_rdwr_init_np (pthread_rdwr_t *rdwrp);
39
int pthread_rdwr_rlock_np (pthread_rdwr_t *rdwrp);
40
int pthread_rdwr_wlock_np (pthread_rdwr_t *rdwrp);
41
int pthread_rdwr_runlock_np (pthread_rdwr_t *rdwrp);
42
int pthread_rdwr_wunlock_np (pthread_rdwr_t *rdwrp);