[glib: 3/4] gthread-posix: Use G_NO_INLINE instead of actual attribute
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/4] gthread-posix: Use G_NO_INLINE instead of actual attribute
- Date: Wed, 6 Jul 2022 13:40:19 +0000 (UTC)
commit e59ac0bc2daad41b2043c6f63989ffc5add1b76b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Jun 24 12:34:28 2022 +0200
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.
glib/gthread-posix.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
index 751533f567..fbf7531fe1 100644
--- a/glib/gthread-posix.c
+++ b/glib/gthread-posix.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]