src/server/ucx/atomic.c

changeset 36
450d2d5f4735
parent 33
96dbfe4f91e5
--- a/src/server/ucx/atomic.c	Sat Aug 18 11:39:34 2012 +0200
+++ b/src/server/ucx/atomic.c	Sat Oct 06 13:00:07 2012 +0200
@@ -22,4 +22,34 @@
     atomic_inc_64(t);
 }
 
+void ucx_atomic_dec_8(volatile uint8_t *t) {
+    atomic_dec_8(t);
+}
 
+void ucx_atomic_dec_16(volatile uint16_t *t) {
+    atomic_dec_16(t);
+}
+
+void ucx_atomic_dec_32(volatile uint32_t *t) {
+    atomic_dec_32(t);
+}
+
+void ucx_atomic_dec_64(volatile uint64_t *t) {
+    atomic_dec_64(t);
+}
+
+uint8_t ucx_atomic_dec_8_nv(volatile uint8_t *t) {
+    return atomic_dec_8_nv(t);
+}
+
+uint16_t ucx_atomic_dec_16_nv(volatile uint16_t *t) {
+    return atomic_dec_16_nv(t);
+}
+
+uint32_t ucx_atomic_dec_32_nv(volatile uint32_t *t) {
+    return atomic_dec_32_nv(t);
+}
+
+uint64_t ucx_atomic_dec_64_nv(volatile uint64_t *t) {
+    return atomic_dec_64_nv(t);
+}

mercurial