pthread_rwlock_attr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
17 #ifndef PTHREAD_RWLOCK_ATTR_H
18 #define PTHREAD_RWLOCK_ATTR_H
19 
20 #include <errno.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 typedef struct
31 {
37  int pshared;
39 
49 
58 
67 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared);
68 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* PTHREAD_RWLOCK_ATTR_H */
84 
pthread_rwlockattr_t::pshared
int pshared
Whether to share lock with child processes.
Definition: pthread_rwlock_attr.h:37
pthread_rwlockattr_destroy
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
Destroy an attribute set.
pthread_rwlockattr_getpshared
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
Read whether to share the lock with child processes.
pthread_rwlockattr_t
Attributes for a new reader/writer lock.
Definition: pthread_rwlock_attr.h:30
pthread_rwlockattr_setpshared
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
Set whether to share the lock with child processes.
pthread_rwlockattr_init
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
Initialize the attribute set with the defaults.
errno.h