Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 633db10..08203cb 100644
--- a/README.md
+++ b/README.md
@@ -134,6 +134,7 @@ The library provides different low-level and high-level threading capabilities.
* [Thread](#thread): a single thread with no artifice ;
* [Mutex](#mutex): a thread mutex ;
* [Condition](#condition): a condition variable.
+ * [Atomic counter](#atomic): lock free atomic counter
Soon some more high-level features will be proposed, built on top of Threads.
@@ -474,3 +475,8 @@ Raise the condition signal.
#### Condition.free() ####
Free given condition.
+
+<a name ='atomic'>
+### Atomic counter ###
+
+`tds.AtomicCounter` has been implemented to be used with `sharedserialize` to provide fast and safe lockless counting of progress (steps) between threads. See [example](test/test-atomic.lua) for usage.