commit 49eec3440a99da803bc0daf2b164e40138a8c90a
Author: Jan RÄ™korajski <[email protected]>
Date:   Fri Apr 12 12:53:07 2013 +0200

    - reading 64bit value may not be atomic

 sync-builtins.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sync-builtins.patch b/sync-builtins.patch
index a9340cc..3d94d37 100644
--- a/sync-builtins.patch
+++ b/sync-builtins.patch
@@ -41,8 +41,8 @@
 +#else
 +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); int64_t v = (*addend)++; 
pthread_mutex_unlock(&global_wtf_lock); return v; }
++inline int64_t atomicDecrement(int64_t volatile* addend) { 
pthread_mutex_lock(&global_wtf_lock); int64_t v = (*addend)--; 
pthread_mutex_unlock(&global_wtf_lock); return v; }
 +#endif
  
  #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit3.git/commitdiff/49eec3440a99da803bc0daf2b164e40138a8c90a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to