Skip to content

Commit 478cab4

Browse files
committed
gthr_aux: Remove __MCF_gthr_unonce()
Reference: #270
1 parent 2be5daa commit 478cab4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

mcfgthread/gthr_aux.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@ struct __MCF_gthr_thread_record
4444
uintptr_t __reserved_high;
4545
};
4646

47-
/* Note that this function is obsolescent by `__MCF_gthr_call_once_seh()`, and
48-
* is kept only for compatibility.
49-
* This is an auxiliary function for exception handling in `__gthread_once()`.
50-
* Ideally, if the target function throws exception we would like to allow
51-
* attempts to retry. Sadly this is not possible in standard C. */
52-
__MCF_GTHR_AUX_INLINE
53-
void
54-
__MCF_gthr_unonce(_MCF_once** __oncep) __MCF_noexcept;
55-
5647
/* These functions implement `__gthread_once()`. If `__once_fn` initiates stack
5748
* unwinding, by throwing an exception for example, the state of `*__once` will
5849
* be restored correctly.
@@ -156,14 +147,6 @@ __MCF_gthr_thread_thunk_v2(_MCF_thread* __thrd) __MCF_noexcept;
156147
* this file. */
157148
__MCF_GTHR_AUX_INLINE
158149
void
159-
__MCF_gthr_unonce(_MCF_once** __oncep) __MCF_noexcept
160-
{
161-
if(*__oncep)
162-
_MCF_once_abort(*__oncep);
163-
}
164-
165-
__MCF_GTHR_AUX_INLINE
166-
void
167150
__MCF_gthr_call_once_seh(_MCF_once* __once, __MCF_cxa_dtor_any_ __init_proc, void* __arg) __MCF_MAY_THROW
168151
{
169152
int __err = _MCF_once_wait(__once, __MCF_nullptr);

0 commit comments

Comments
 (0)