[packages/gtk-webkit3] - fix arg pointer usage
baggins
baggins at pld-linux.org
Fri Apr 12 09:00:42 CEST 2013
commit 5947df8473f051a08d15cfe6d4372edda830547c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Apr 12 09:00:25 2013 +0200
- fix arg pointer usage
sync-builtins.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sync-builtins.patch b/sync-builtins.patch
index 3c252b4..f32f194 100644
--- a/sync-builtins.patch
+++ b/sync-builtins.patch
@@ -32,8 +32,8 @@
+#include <pthread.h>
+static pthread_mutex_t global_wtf_lock = PTHREAD_MUTEX_INITIALIZER;
+
-+inline int64_t atomicIncrement(int64_t volatile* addend) { pthread_mutex_lock(&global_wtf_lock); addend++; pthread_mutex_unlock(&global_wtf_lock); return addend; }
-+inline int64_t atomicDecrement(int64_t volatile* addend) { pthread_mutex_lock(&global_wtf_lock); addend--; pthread_mutex_unlock(&global_wtf_lock); return addend; }
++inline int64_t atomicIncrement(int64_t volatile* addend) { pthread_mutex_lock(&global_wtf_lock); *addend++; pthread_mutex_unlock(&global_wtf_lock); return *addend; }
++inline int64_t atomicDecrement(int64_t volatile* addend) { pthread_mutex_lock(&global_wtf_lock); *addend--; pthread_mutex_unlock(&global_wtf_lock); return *addend; }
+#endif
#endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit3.git/commitdiff/5947df8473f051a08d15cfe6d4372edda830547c
More information about the pld-cvs-commit
mailing list