Skip to content

Commit

Permalink
gthr,libcxx,c11: Revert previous changes due to build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 17, 2024
1 parent db34576 commit 8b9183d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions mcfgthread/c11.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ __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 All @@ -415,9 +414,9 @@ __MCF_c11_call_once(once_flag* __once, __MCF_once_callback* __init_proc)
__once_g = NULL;
_MCF_once_release(__once);
}
#ifdef _MSC_VER
#ifdef _MSC_VER
__finally { __MCF_gthr_unonce(&__once_g); }
#endif
#endif
}

__MCF_C11_INLINE
Expand Down
5 changes: 2 additions & 3 deletions mcfgthread/gthr.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ __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 All @@ -362,9 +361,9 @@ __MCF_gthr_once(__gthread_once_t* __once, __MCF_once_callback* __init_proc)
_MCF_once_release(__once);
return 0;
}
#ifdef _MSC_VER
#ifdef _MSC_VER
__finally { __MCF_gthr_unonce(&__once_g); }
#endif
#endif
}

__MCF_GTHR_INLINE
Expand Down
5 changes: 2 additions & 3 deletions mcfgthread/libcxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ __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 All @@ -358,9 +357,9 @@ __MCF_libcxx_execute_once(__libcpp_exec_once_flag* __once, __MCF_once_callback*
_MCF_once_release(__once);
return 0;
}
#ifdef _MSC_VER
#ifdef _MSC_VER
__finally { __MCF_gthr_unonce(&__once_g); }
#endif
#endif
}

__MCF_LIBCXX_INLINE
Expand Down

0 comments on commit 8b9183d

Please sign in to comment.