summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormoteus <mimir@newmail.ru>2013-12-26 18:10:40 +0400
committermoteus <mimir@newmail.ru>2013-12-26 18:10:40 +0400
commit5291caae5be68250a4d9aafa54fe2081ab2a6113 (patch)
tree48faae28c997bbb9552feb6fe60f350dee72714b /README.md
parent5982fd74baad6cdee2c536203afe6c435a2d02e9 (diff)
downloadlua-llthreads2-5291caae5be68250a4d9aafa54fe2081ab2a6113.tar.gz
lua-llthreads2-5291caae5be68250a4d9aafa54fe2081ab2a6113.tar.bz2
lua-llthreads2-5291caae5be68250a4d9aafa54fe2081ab2a6113.zip
Update tests.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 3 insertions, 6 deletions
diff --git a/README.md b/README.md
index 3721b90..b14d44d 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,6 @@ This is full dropin replacement for [llthreads](https://github.com/Neopallium/lu
17* thread:join() method support arbitrary timeout on Windows platform 17* thread:join() method support arbitrary timeout on Windows platform
18* set_logger function allow logging errors (crash Lua VM) in current llthread's threads 18* set_logger function allow logging errors (crash Lua VM) in current llthread's threads
19 19
20[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/moteus/lua-llthreads2/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
21
22
23##Usage 20##Usage
24 21
25### Use custom logger 22### Use custom logger
@@ -32,9 +29,9 @@ local LOG = require"log".new(
32 require "log.writer.net.zmq".new("tcp://127.0.0.1:5555") 29 require "log.writer.net.zmq".new("tcp://127.0.0.1:5555")
33) 30)
34llthread.set_logger(function(msg) LOG.error(msg) end) 31llthread.set_logger(function(msg) LOG.error(msg) end)
35
36...
37
38-- This error with traceback will be passed to logger 32-- This error with traceback will be passed to logger
39error("SOME ERROR") 33error("SOME ERROR")
40``` 34```
35
36[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/moteus/lua-llthreads2/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
37