Ouss4 edited a comment on pull request #4129:
URL: https://github.com/apache/incubator-nuttx/pull/4129#issuecomment-879331193


   @xiaoxiang781216 please see the latest issue: 
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_barrier_destroy.html
   
   It says (at the bottom):
   
   > The [EBUSY] error for a barrier that is in use or an already initialized 
barrier object is removed; this condition results in undefined behavior.
   
   EDIT: It also says:
   
   > If an implementation detects that the value specified by the barrier 
argument to pthread_barrier_destroy() or pthread_barrier_init() refers to a 
barrier that is in use (for example, in a pthread_barrier_wait() call) by 
another thread, or detects that the value specified by the barrier argument to 
pthread_barrier_init() refers to an already initialized barrier object, it is 
recommended that the function should fail and report an [EBUSY] error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to