mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
gthread-posix: Use G_NO_INLINE instead of actual attribute
Even if this is gcc/clang-only code, it's just better to use the generic macros we now have.
This commit is contained in:
parent
a6f8fe071e
commit
e59ac0bc2d
@ -1490,7 +1490,8 @@ g_mutex_clear (GMutex *mutex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((noinline))
|
G_GNUC_NO_INLINE
|
||||||
|
static void
|
||||||
g_mutex_lock_slowpath (GMutex *mutex)
|
g_mutex_lock_slowpath (GMutex *mutex)
|
||||||
{
|
{
|
||||||
/* Set to contended. If it was empty before then we
|
/* Set to contended. If it was empty before then we
|
||||||
@ -1505,7 +1506,8 @@ g_mutex_lock_slowpath (GMutex *mutex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((noinline))
|
G_GNUC_NO_INLINE
|
||||||
|
static void
|
||||||
g_mutex_unlock_slowpath (GMutex *mutex,
|
g_mutex_unlock_slowpath (GMutex *mutex,
|
||||||
guint prev)
|
guint prev)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user