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
9#pragma once
10
18
19#include <errno.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29typedef struct
30{
38
48
57
67
77
78#ifdef __cplusplus
79}
80#endif
81
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.