Loading...
Searching...
No Matches
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
23extern "C" {
24#endif
25
30typedef struct
31{
39
49
58
68
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* PTHREAD_RWLOCK_ATTR_H */
84
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
Read whether to share the lock with child processes.
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
Destroy an attribute set.
int pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
Initialize the attribute set with the defaults.
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
Set whether to share the lock with child processes.
Attributes for a new reader/writer lock.
int pshared
Whether to share lock with child processes.