aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.lua
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2012-07-10 21:43:32 +0200
committerBenoit Germain <bnt.germain@gmail.com>2012-07-10 21:43:32 +0200
commit0373f863a9dbabbbe3e9aa74bea3e4b778f3a0cd (patch)
tree52dfb987d5ee12ef4668e875d19a70a6c77cebe1 /src/lanes.lua
parent4468ec94e354a9f6d8d7ea2859afa757bb934617 (diff)
downloadlanes-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.lua4
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)
56end 56end
57 57
58local mm = require "lua51-lanes" 58local mm = require "lanes.core"
59assert( type(mm)=="table" ) 59assert( 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
62if mm.configure then mm.configure( _params.nb_keepers, _params.on_state_create) end 62if mm.configure then mm.configure( _params.nb_keepers, _params.on_state_create) end
63 63
64local thread_new = assert(mm.thread_new) 64local thread_new = assert(mm.thread_new)