summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/array.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-23 04:26:12 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-23 04:26:12 +0000
commit02d9554b1d81e1ddae04194c299b354c04b0c706 (patch)
tree073ad103b6ac71f5ec852774dae34a5b7c03592a /libdimension/dimension/array.h
parentefe600537740bb572f4a062ab6b9df12623e0c24 (diff)
downloaddimension-02d9554b1d81e1ddae04194c299b354c04b0c706.tar.xz
New dmnsn_array_size() thread-safe function.
Diffstat (limited to 'libdimension/dimension/array.h')
-rw-r--r--libdimension/dimension/array.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdimension/dimension/array.h b/libdimension/dimension/array.h
index 5abdf48..d0693fc 100644
--- a/libdimension/dimension/array.h
+++ b/libdimension/dimension/array.h
@@ -46,11 +46,13 @@ void dmnsn_array_pop(dmnsn_array *array, void *obj);
void dmnsn_array_get(const dmnsn_array *array, size_t i, void *obj);
void dmnsn_array_set(dmnsn_array *array, size_t i, const void *obj);
-void dmnsn_array_resize(dmnsn_array *array, size_t length);
+size_t dmnsn_array_size(const dmnsn_array *array);
+void dmnsn_array_resize(dmnsn_array *array, size_t length);
/* Manual locking */
void *dmnsn_array_at(dmnsn_array *array, size_t i);
+size_t dmnsn_array_size_unlocked(const dmnsn_array *array);
void dmnsn_array_resize_unlocked(dmnsn_array *array, size_t length);
void dmnsn_array_rdlock(const dmnsn_array *array);