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:
Marco Trevisan (Treviño) 2022-06-24 12:34:28 +02:00
parent a6f8fe071e
commit e59ac0bc2d

View File

@ -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)
{
/* 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,
guint prev)
{