diff options
author | lake4790k <lake4790k@users.noreply.github.com> | 2016-05-14 19:12:37 +0300 |
---|---|---|
committer | lake4790k <lake4790k@users.noreply.github.com> | 2016-05-14 19:12:37 +0300 |
commit | 18e0c0698526d7f9400e44a35374e0d227e07414 (patch) | |
tree | 05af1c0fc7bbc37565210ea1ce24df7e44472052 | |
parent | d774ae79aed1b7f07ff49749847999e74a0e6caa (diff) |
add test to travis and docs
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | README.md | 6 |
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 @@ -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. |