[vala] After GLib 2.30 the GLib.AtomicInt.add returns int
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] After GLib 2.30 the GLib.AtomicInt.add returns int
- Date: Fri, 26 Apr 2013 20:16:22 +0000 (UTC)
commit 49ec57aa31e4e41b4bf16b73379e1b6751b0504f
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Sun Dec 2 13:41:58 2012 +0000
After GLib 2.30 the GLib.AtomicInt.add returns int
vapi/glib-2.0.vapi | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 163ffbb..1383405 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1469,7 +1469,11 @@ namespace GLib {
namespace AtomicInt {
public static int get ([CCode (type = "volatile gint *")] ref int atomic);
public static void set ([CCode (type = "volatile gint *")] ref int atomic, int newval);
+#if GLIB_2_30
+ public static int add ([CCode (type = "volatile gint *")] ref int atomic, int val);
+#else
public static void add ([CCode (type = "volatile gint *")] ref int atomic, int val);
+#endif
[Deprecated (since = "2.30", replacement = "add")]
public static int exchange_and_add ([CCode (type = "volatile gint *")] ref int atomic, int
val);
public static bool compare_and_exchange ([CCode (type = "volatile gint *")] ref int atomic,
int oldval, int newval);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]