diff options
| -rw-r--r-- | src/lanes.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index c02281d..ac3da26 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
| @@ -62,7 +62,16 @@ lanes.configure = function( _params) | |||
| 62 | local tostring = assert( tostring) | 62 | local tostring = assert( tostring) |
| 63 | local error = assert( error) | 63 | local error = assert( error) |
| 64 | 64 | ||
| 65 | local default_params = { nb_keepers = 1, on_state_create = nil, shutdown_timeout = 0.25, with_timers = true, track_lanes = nil, protect_allocator = false} | 65 | local default_params = |
| 66 | { | ||
| 67 | nb_keepers = 1, | ||
| 68 | on_state_create = nil, | ||
| 69 | shutdown_timeout = 0.25, | ||
| 70 | with_timers = true, | ||
| 71 | track_lanes = nil, | ||
| 72 | -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes | ||
| 73 | protect_allocator = (jit and jit.version) and true or false | ||
| 74 | } | ||
| 66 | local param_checkers = | 75 | local param_checkers = |
| 67 | { | 76 | { |
| 68 | nb_keepers = function( _val) | 77 | nb_keepers = function( _val) |
