mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
gthread: introduce g_once_init_{enter,leave}_pointer
These functions can be used to initalize pointer-type variables rather than a gsize. This is required to support CHERI-enabled platforms where gsize cannot be used to store pointers. Follow-up changes will migrate the uses of g_once_init that store pointers to the new API Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842
This commit is contained in:
committed by
Philip Withnall
parent
9c81ff46a2
commit
726eca7c89
@@ -782,6 +782,8 @@ G_ONCE_INIT
|
||||
g_once
|
||||
g_once_init_enter
|
||||
g_once_init_leave
|
||||
g_once_init_enter_pointer
|
||||
g_once_init_leave_pointer
|
||||
|
||||
<SUBSECTION>
|
||||
g_bit_lock
|
||||
|
Reference in New Issue
Block a user