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:
authorlake4790k <lake4790k@users.noreply.github.com>2016-05-14 19:12:37 +0300
committerlake4790k <lake4790k@users.noreply.github.com>2016-05-14 19:12:37 +0300
commit18e0c0698526d7f9400e44a35374e0d227e07414 (patch)
tree05af1c0fc7bbc37565210ea1ce24df7e44472052
parentd774ae79aed1b7f07ff49749847999e74a0e6caa (diff)
add test to travis and docs
-rw-r--r--.travis.yml1
-rw-r--r--README.md6
2 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index bf854c8..c9904f5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -59,3 +59,4 @@ script:
- ${TESTLUA} test-threads-shared.lua
- ${TESTLUA} test-traceback.lua
- ${TESTLUA} test-threads-coroutine.lua
+- ${TESTLUA} test-atomic.lua
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.