Loading...
Searching...
No Matches
pthread_rwlock_attr.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
15
16#include <errno.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26typedef struct
27{
35
45
54
64
74
75#ifdef __cplusplus
76}
77#endif
78
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.