[asterisk-commits] file: trunk r92206 - /trunk/utils/check_expr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 10 10:48:19 CST 2007


Author: file
Date: Mon Dec 10 10:48:18 2007
New Revision: 92206

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92206
Log:
Add ast_atomic_fetchadd_int_slow to check_expr for platforms that need it.
(closes issue #11484)
Reported by: snuffy

Modified:
    trunk/utils/check_expr.c

Modified: trunk/utils/check_expr.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/check_expr.c?view=diff&rev=92206&r1=92205&r2=92206
==============================================================================
--- trunk/utils/check_expr.c (original)
+++ trunk/utils/check_expr.c Mon Dec 10 10:48:18 2007
@@ -147,6 +147,14 @@
 
 void ast_register_file_version(const char *file, const char *version) { }
 int ast_add_profile(const char *x, uint64_t scale) { return 0;} 
+
+int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
+{
+        int ret;
+        ret = *p;
+        *p += v;
+        return ret;
+}
 
 void ast_unregister_file_version(const char *file)
 {




More information about the asterisk-commits mailing list