Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use rawset when initializing child thread args #34

Merged
merged 1 commit into from
Mar 31, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lua/lzmq/llthreads/ex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ local bootstrap_code = require"string".dump(function(lua_init, prelude, code, ..
local func
func, args[0] = load_src(code)

_G.arg = args
arg = args
rawset(_G, "arg", args)
arg = args

return func(unpack_n(args))
end)
Expand Down Expand Up @@ -221,4 +221,4 @@ end
--
-- @table THREAD_OPTIONS

return threads
return threads