diff options
author | Kaiyu Yang <yangky11@outlook.com> | 2015-10-04 08:44:49 +0300 |
---|---|---|
committer | Kaiyu Yang <yangky11@outlook.com> | 2015-10-04 08:44:49 +0300 |
commit | 267759ad5899ddd3f5799f378880a7f67163efaa (patch) | |
tree | b1ffa86293e3f8bedca362da6451ca70e317b4f5 | |
parent | b3d8fb70bf573c5d4c3818e9b6b7c573a03829d5 (diff) |
format
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -205,11 +205,11 @@ threads.Threads(4, ) ``` -Note that the id of each thread is also stored into the global variable `__threadid` (in each thread Lua state). +Note that the id of each thread is also stored into the global variable `__threadid` (in each thread Lua state). Special notice about upvalues: -When a child deserialize a callback, all the upvalues in it must be of known types. Since the callbacks in threads.Threads are deserialized in order, -we suggest that you make a separated f1 containing all the definitions and put the other code in f2,f3,... -For example +When deserializing a callback, upvalues in that callback must be of known types. Since f1,f2,... in [threads.Threads](#threads.Threads) are deserialized in order, +we suggest that you make a separated f1 containing all the definitions and put the other code in f2,f3,... +e.g. ``` require 'nn' local threads = require 'threads' |