Skip to content

Commit

Permalink
Merge pull request #34 from johnfoconnor/master
Browse files Browse the repository at this point in the history
use rawset when initializing child thread args
  • Loading branch information
moteus committed Mar 31, 2015
2 parents e1ca8e1 + 322ab86 commit e626dbc
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit e626dbc

Please sign in to comment.