diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2012-07-10 21:43:32 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2012-07-10 21:43:32 +0200 |
commit | 0373f863a9dbabbbe3e9aa74bea3e4b778f3a0cd (patch) | |
tree | 52dfb987d5ee12ef4668e875d19a70a6c77cebe1 /src/lanes.lua | |
parent | 4468ec94e354a9f6d8d7ea2859afa757bb934617 (diff) | |
download | lanes-3.1.5.tar.gz lanes-3.1.5.tar.bz2 lanes-3.1.5.zip |
one more step toward 5.2 compatibilityv3.1.5
* lua51-lanes renamed lanes.core
* keeper state microcode is no longer embedded inside lanes.core, but located and loaded with package.loaders[2]
* changed rockspec build type from "make" to "builtin"
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) |