summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/array.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-22 05:32:04 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-22 05:32:04 +0000
commitd23bff8a2eee13eec0724aabe5d9a86b126c4b2c (patch)
tree20541946b210329d516e606842745d1504deb8b8 /libdimension/dimension/array.h
parent3eb41435e3c266a6a8f3496ffa5d832f5951c50f (diff)
downloaddimension-d23bff8a2eee13eec0724aabe5d9a86b126c4b2c.tar.xz
Add interface for performing long tasks in background, while giving a
progress indication.
Diffstat (limited to 'libdimension/dimension/array.h')
-rw-r--r--libdimension/dimension/array.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/dimension/array.h b/libdimension/dimension/array.h
index 30a119d..5abdf48 100644
--- a/libdimension/dimension/array.h
+++ b/libdimension/dimension/array.h
@@ -48,10 +48,11 @@ void dmnsn_array_set(dmnsn_array *array, size_t i, const void *obj);
void dmnsn_array_resize(dmnsn_array *array, size_t length);
-/* Thread-unsafe! Don't give multiple threads the same raw pointer... */
+/* Manual locking */
+
void *dmnsn_array_at(dmnsn_array *array, size_t i);
+void dmnsn_array_resize_unlocked(dmnsn_array *array, size_t length);
-/* Manual locking */
void dmnsn_array_rdlock(const dmnsn_array *array);
void dmnsn_array_wrlock(dmnsn_array *array);
void dmnsn_array_unlock(const dmnsn_array *array);