aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index f1127c5b..89759921 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -232,6 +232,11 @@ extern void nni_atomic_inc(nni_atomic_int *);
// true if the value was set.
extern bool nni_atomic_cas(nni_atomic_int *, int, int);
+// atomic pointers. We only support a few operations.
+typedef struct nni_atomic_ptr nni_atomic_ptr;
+extern void nni_atomic_set_ptr(nni_atomic_ptr *, void *);
+extern void *nni_atomic_get_ptr(nni_atomic_ptr *);
+
//
// Clock Support
//