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
12 pthread_barrierattr_destroy, pthread_barrierattr_init - destroy and
13 initialize the barrier attributes object (ADVANCED REALTIME THREADS)
14
16 #include <pthread.h>
17
18 int pthread_barrierattr_destroy(pthread_barrierattr_t *attr);
19 int pthread_barrierattr_init(pthread_barrierattr_t *attr);
20
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 Results are undefined if pthread_barrierattr_init() is called specify‐
35 ing an already initialized attr attributes object.
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
42 If successful, the pthread_barrierattr_destroy() and pthread_barrier‐
43 attr_init() functions shall return zero; otherwise, an error number
44 shall be returned to indicate the error.
45
47 The pthread_barrierattr_destroy() function may fail if:
48
49 EINVAL The value specified by attr is invalid.
50
51
52 The pthread_barrierattr_init() function shall fail if:
53
54 ENOMEM Insufficient memory exists to initialize the barrier attributes
55 object.
56
57
58 These functions shall not return an error code of [EINTR].
59
60 The following sections are informative.
61
63 None.
64
66 The pthread_barrierattr_destroy() and pthread_barrierattr_init() func‐
67 tions are part of the Barriers option and need not be provided on all
68 implementations.
69
71 None.
72
74 None.
75
77 pthread_barrierattr_getpshared(), pthread_barrierattr_setpshared(), the
78 Base Definitions volume of IEEE Std 1003.1-2001, <pthread.h>.
79
81 Portions of this text are reprinted and reproduced in electronic form
82 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
83 -- Portable Operating System Interface (POSIX), The Open Group Base
84 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
85 Electrical and Electronics Engineers, Inc and The Open Group. In the
86 event of any discrepancy between this version and the original IEEE and
87 The Open Group Standard, the original IEEE and The Open Group Standard
88 is the referee document. The original Standard can be obtained online
89 at http://www.opengroup.org/unix/online.html .
90
91
92
93IEEE/The Open Group 2003 PTHREAD_BARRIERATTR_DESTROY(3P)