Skip to content

Commit

Permalink
libcxx,gthr,c11: Complement block statements a little
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 17, 2024
1 parent a7aa69c commit db34576
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mcfgthread/c11.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ __MCF_c11_call_once(once_flag* __once, __MCF_once_callback* __init_proc)
__try
#else
_MCF_once* __once_g __attribute__((__cleanup__(__MCF_gthr_unonce))) = NULL;
if(0); else
#endif
{
if(_MCF_once_wait(__once, NULL) == 0)
Expand Down
1 change: 1 addition & 0 deletions mcfgthread/gthr.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ __MCF_gthr_once(__gthread_once_t* __once, __MCF_once_callback* __init_proc)
__try
#else
_MCF_once* __once_g __attribute__((__cleanup__(__MCF_gthr_unonce))) = NULL;
if(0); else
#endif
{
if(_MCF_once_wait(__once, NULL) == 0)
Expand Down
1 change: 1 addition & 0 deletions mcfgthread/libcxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ __MCF_libcxx_execute_once(__libcpp_exec_once_flag* __once, __MCF_once_callback*
__try
#else
_MCF_once* __once_g __attribute__((__cleanup__(__MCF_gthr_unonce))) = NULL;
if(0); else
#endif
{
if(_MCF_once_wait(__once, NULL) == 0)
Expand Down

0 comments on commit db34576

Please sign in to comment.