diff options
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index bd66e6c..8cd3737 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -55,10 +55,10 @@ if _params.on_state_create and (type( _params.on_state_create) ~= "function") th | |||
55 | error( "Bad on_state_create: " .. tostring( _params.on_state_create), 2) | 55 | error( "Bad on_state_create: " .. tostring( _params.on_state_create), 2) |
56 | end | 56 | end |
57 | 57 | ||
58 | local mm = require "lua51-lanes" | 58 | local mm = require "lanes.core" |
59 | assert( type(mm)=="table" ) | 59 | assert( type(mm)=="table" ) |
60 | 60 | ||
61 | -- configure() is available only the first time lua51-lanes is required process-wide, and we *must* call it to have the other functions in the interface | 61 | -- configure() is available only the first time lanes.core is required process-wide, and we *must* call it to have the other functions in the interface |
62 | if mm.configure then mm.configure( _params.nb_keepers, _params.on_state_create) end | 62 | if mm.configure then mm.configure( _params.nb_keepers, _params.on_state_create) end |
63 | 63 | ||
64 | local thread_new = assert(mm.thread_new) | 64 | local thread_new = assert(mm.thread_new) |