Home | History | Annotate | Download | only in pthread_barrierattr_getpshared
      1 <assertions>
      2   <assertion id="1" tag="ref:XSH6:31924:31925">
      3   The pthread_barrierattr_getpshared( ) function shall obtain the value of the process-shared
      4   attribute from the attributes object referenced by attr.
      5   </assertion>
      6 
      7   <assertion id="2" tag="ref:XSH6:31927:31934">
      8   The process-shared attribute is set to PTHREAD_PROCESS_SHARED to permit a barrier to be
      9   operated upon by any thread that has access to the memory where the barrier is allocated.
     10   If the process-shared attribute is PTHREAD_PROCESS_PRIVATE, the barrier shall only be operated
     11   upon by threads created within the same process as the thread that initialized the barrier; if
     12   threads of different processes attempt to operate on such a barrier, the behavior is undefined.
     13   The default value of the attribute shall be PTHREAD_PROCESS_PRIVATE. Both constants
     14   PTHREAD_PROCESS_SHARED and PTHREAD_PROCESS_PRIVATE are defined in "pthread.h".
     15   </assertion>
     16 
     17   <assertion id="3" tag="ref:XSH6:31938:31940">
     18   If successful, the pthread_barrierattr_getpshared( ) function shall return zero and store the
     19   value of the process-shared attribute of attr into the object referenced by the pshared
     20   parameter. Otherwise, an error number shall be returned to indicate the error.
     21   </assertion>
     22 
     23   <assertion id="4" tag="ref:XSH6:31944:31945">
     24   These functions may fail if:
     25   [EINVAL] The value specified by attr is invalid.
     26   These functions shall not return an error code of EINTR.
     27   </assertion>
     28 </assertions>
     29 
     30