Skip to content

Commit

Permalink
gthr_aux: Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Oct 29, 2024
1 parent 55f34a7 commit 2b660be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mcfgthread/gthr_aux.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ __MCF_GTHR_AUX_INLINE
void
__MCF_gthr_call_once_seh(_MCF_once* __once, __MCF_cxa_dtor_any_t __init_proc, void* __arg) __MCF_MAY_THROW;

#define __MCF_GTHR_CALL_ONCE_SEH(__once, __init_proc, __arg) \
__MCF_gthr_call_once_seh(__once, \
__MCF_CAST_PTR(__MCF_cxa_dtor_cdecl, __init_proc), __arg)

__MCF_GTHR_AUX_IMPORT
void
__MCF_gthr_call_once_seh_take_over(_MCF_once* __once, __MCF_cxa_dtor_any_t __init_proc, void* __arg) __MCF_MAY_THROW;

/* This is a type-generic macro. `__init_proc` may be of any calling convention,
* and may take an arbitrary pointer. */
#define __MCF_GTHR_CALL_ONCE_SEH(__once, __init_proc, __arg) \
__MCF_gthr_call_once_seh(__once, \
__MCF_CAST_PTR(__MCF_cxa_dtor_cdecl, __init_proc), __arg)

/* This is an auxiliary function for converting a `__MCF_timespec` to the
* number of milliseconds since the Unix epoch, with boundary checking. */
__MCF_GTHR_AUX_IMPORT __MCF_FN_PURE
Expand Down

0 comments on commit 2b660be

Please sign in to comment.