1PTHREAD_BARRIERATTR_DESTROY(P3OPS)IX Programmer's MaPnTuHaRlEAD_BARRIERATTR_DESTROY(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 pthread_barrierattr_destroy, pthread_barrierattr_init — destroy and
14 initialize the barrier attributes object
15
17 #include <pthread.h>
18
19 int pthread_barrierattr_destroy(pthread_barrierattr_t *attr);
20 int pthread_barrierattr_init(pthread_barrierattr_t *attr);
21
23 The pthread_barrierattr_destroy() function shall destroy a barrier
24 attributes object. A destroyed attr attributes object can be reinitial‐
25 ized using pthread_barrierattr_init(); the results of otherwise refer‐
26 encing the object after it has been destroyed are undefined. An imple‐
27 mentation may cause pthread_barrierattr_destroy() to set the object
28 referenced by attr to an invalid value.
29
30 The pthread_barrierattr_init() function shall initialize a barrier
31 attributes object attr with the default value for all of the attributes
32 defined by the implementation.
33
34 If pthread_barrierattr_init() is called specifying an already initial‐
35 ized attr attributes object, the results are undefined.
36
37 After a barrier attributes object has been used to initialize one or
38 more barriers, any function affecting the attributes object (including
39 destruction) shall not affect any previously initialized barrier.
40
41 The behavior is undefined if the value specified by the attr argument
42 to pthread_barrierattr_destroy() does not refer to an initialized bar‐
43 rier attributes object.
44
46 If successful, the pthread_barrierattr_destroy() and pthread_barrier‐
47 attr_init() functions shall return zero; otherwise, an error number
48 shall be returned to indicate the error.
49
51 The pthread_barrierattr_init() function shall fail if:
52
53 ENOMEM Insufficient memory exists to initialize the barrier attributes
54 object.
55
56 These functions shall not return an error code of [EINTR].
57
58 The following sections are informative.
59
61 None.
62
64 None.
65
67 If an implementation detects that the value specified by the attr argu‐
68 ment to pthread_barrierattr_destroy() does not refer to an initialized
69 barrier attributes object, it is recommended that the function should
70 fail and report an [EINVAL] error.
71
73 None.
74
76 pthread_barrierattr_getpshared()
77
78 The Base Definitions volume of POSIX.1‐2008, <pthread.h>
79
81 Portions of this text are reprinted and reproduced in electronic form
82 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
83 -- Portable Operating System Interface (POSIX), The Open Group Base
84 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
85 cal and Electronics Engineers, Inc and The Open Group. (This is
86 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
87 event of any discrepancy between this version and the original IEEE and
88 The Open Group Standard, the original IEEE and The Open Group Standard
89 is the referee document. The original Standard can be obtained online
90 at http://www.unix.org/online.html .
91
92 Any typographical or formatting errors that appear in this page are
93 most likely to have been introduced during the conversion of the source
94 files to man page format. To report such errors, see https://www.ker‐
95 nel.org/doc/man-pages/reporting_bugs.html .
96
97
98
99IEEE/The Open Group 2013 PTHREAD_BARRIERATTR_DESTROY(3P)