aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | * fix inconsistency in rockspecBenoit Germain2011-11-131-1/+1
| |
* | fix link on Ubuntu 11.10Benoit Germain2011-11-091-1/+1
| |
* | some more compilation warning fixesBenoit Germain2011-11-093-9/+11
| |
* | update rockspecv3.0-betabenoit-germain2011-11-071-1/+1
| |
* | Merge remote-tracking branch 'origin/master'Benoit Germain2011-11-071-0/+2
|\ \
| * | Cause `lanes.configure()` to return the module table to enable the `require ↵benoit-germain2011-11-071-0/+2
| | | | | | | | | | | | "lanes".configure()` idiom.
* | | * fix all compilation warnings raised by -WextraBenoit Germain2011-11-073-19/+23
|/ / | | | | | | * fix a multithreading issue at desinit causing invalid memory accesses (to be verified)
* | * process exit change: close everything at GC when main state closes, not ↵Benoit Germain2011-11-0536-336/+1092
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when atexit() handlers are processed * Lua 5.2-style module: * module() is no longer used to implement lanes.lua * a global "lanes" variable is no longer created when the module is required * the Lanes module table is returned instead * Lanes must be initialized before used: * the first occurence of 'require "lanes"' produces a minimal interface that only contains a configure() function * the remainder of the interface is made available once this function is called * subsequent calls to configure() do nothing * configure() controls the number of keeper states and the startup of timers * LuaJIT 2 compatibility * non-Lua functions are no longer copied by creating a C closure from a C pointer, but through 2-way lookup tables * this means that if a lane function body pulls non-Lua functions, the lane generator description must contain the list of libraries and modules that exports them * introduces a change in configuration .globals management: contents are copied *after* std libs are loaded * new .required configuration entry to list modules that must be require()'ed before lane body is transferred * lane:cancel() wakes up waiting lindas like what is done at lane shutdown
* | 3.0-beta rockspecBenoit Germain2011-11-051-0/+97
| |
* | Debug code to check why LuaJIT2-beta8 fails to load the module.benoit-germain2011-06-241-5/+14
| |
* | linda:send() raises an error when there is no data to send instead of ↵v2.2.0Benoit Germain2011-05-143-1/+9
| | | | | | | | silently doing nothing.
* | * linda uses a fast FIFO implementation to speed up data exchangesBenoit Germain2011-04-181-0/+223
|\ \ | | | | | | | | | | | | | | | | | | | | | * new linda:count() method * new linda batched data read mode * proper key type check in all linda methods * fix setup-vc.cmd to support Visual Studio 2010 and Windows 7 64 bits * bugfix: release keeper state mutex at desinit
| * | Release keeper state mutex at module desinit.benoit-germain2011-04-111-0/+1
| | |
* | | * linda uses a fast FIFO implementation to speed up data exchangesBenoit Germain2011-04-188-162/+310
|/ / | | | | | | | | | | | | | | * new linda:count() method * new linda batched data read mode * proper key type check in all linda methods * fix setup-vc.cmd to support Visual Studio 2010 and Windows 7 64 bits * bugfix: release keeper state mutex at desinit
* / New featuresBenoit Germain2011-03-305-12/+197
|/ | | | | | * linda honors __tostring and __concat * new accessor linda:keys(), to retrieve the list of keys with pending data inside a linda * new lanes options packagepath and packagecpath, in case one needs to set them differently than the default
* hopefully fix pthread compilation (and should work better under WIN32 too...)v2.1.0Benoit Germain2011-03-021-2/+2
|
* fix typo in timer function codebenoit-germain2011-03-021-1/+1
|
* rockspecs for 2.0.11 and 2.1.0 (latest not operational yet since tag doesn't ↵Benoit Germain2011-03-012-2/+99
| | | | exist)
* Just a small fix necessary because -Werror is used and GCC 4.2 on OS X ↵Benoit Germain2011-03-011-1/+1
| | | | complains.
* * fixed potential crash at application shutdown when calling lua_close() on ↵Benoit Germain2011-03-017-133/+250
| | | | | | | a killed thread's VM. * exposed cancel_test() in the lanes to enable manual testing for cancellation requests. * removed kludgy {globals={threadName}} support, replaced with a new function set_debug_threadname().
* Make the number of internal keeper states selectable by an optional ↵Benoit Germain2011-02-216-57/+71
| | | | parameter passed to require.
* * keeper.lua is now embedded in text form instead of bytecode to improve ↵Benoit Germain2011-02-1811-242/+347
| | | | | | LuaJIT2-compatibility (but this is not enough). * moved keeper-related code in a separate source file
* Lane userdata implementation refactoring:Benoit Germain2011-02-1710-188/+346
| | | | | | | | | | | | | | | - Refactor lane proxy implementation: it is now a full userdata instead of a table, and its methods are implemented in C instead of Lua. * its metatable is no longer accessible. * writing to the proxy raises an error. * it is no longer possible to overwrite its join() and cancel() methods - when a deep userdata idfunc requests a module to be required, manually check that it is not loaded before requiring it instead of relying on the require function's loop detection feature. - when a module must be required, raise an error if the 'require' function is not found in the target state. - we know Lanes is loaded in the master state, so we don't force it to be required in every lane too when a linda deep userdata is copied.
* Fixed application hang-up because keeper state was not released in case of ↵Benoit Germain2011-02-145-8/+31
| | | | errors thrown by inter-state data copy for unsupported types
* Fixed application hang-up because keeper state was not released in case of ↵Benoit Germain2011-02-143-312/+413
| | | | errors thrown by inter-state data copy for unsupported types
* Changed idfunc signature and contract to clarify that fact it is not ↵Benoit Germain2011-02-128-188/+226
| | | | lua-callable and to be able to require the module it was exported from in the target lanes.
* Added rockspec fileBenoit Germain2011-01-291-0/+96
|
* Updated CHANGESv2.0.11Benoit Germain2011-01-293-4/+14
| | | | | Fixed makefile so that make finds lua.exe Updated contact information in documentation
* Merge branch 'pull_request_2' of https://github.com/dptr1988/lanesBenoit Germain2011-01-262-38/+26
|\
| * Changed lanes.c to export functions as a module rather than writing them ↵Peter Dettwiler2011-01-252-38/+26
| | | | | | | | directly to the globals table.
* | Changed the atexit code to trip the timer thread's write signal.dptr19882011-01-231-5/+9
| | | | | | | | | | | | | | | | | | This fixes one of the causes of the "pthread_cond_destroy(ref) failed, 16 EBUSY" error, in which the timer thread was stuck waiting on the write_happend signal and never read the cancel request. This doesn't fix the issue of attempting to cancel threads waiting on a Linda signal. So this error message ( and seg fault ) can easily be recreated just by making a new thread, having it wait indefinitly on a Linda and then trying to cancel the thread.
* | Fixed bug where reference to Linda object was dropped for a short time ( ↵dptr19882011-01-231-1/+6
|/ | | | | | | | | crashing if GC was run during that time ). The reference could have also been stored in the module table ( or globals ) but those can be overwritten by the user. With the Lua registry, it should be inaccessible by the user and since it's referenced by a unique key, it should also normally be in accessible to C libraries, making it a relativily safe place to store the reference.
* Changed luaG_push_proxy to cache deep userdata proxies.dptr19882011-01-191-3/+46
|
* Updated dist.info to v2.0.10v2.0.10Michal Kottman2011-01-081-1/+1
|
* Fixed CMakeLists.txt to search for lua and luacMichal Kottman2011-01-081-0/+5
|
* CleanupMichal Kottman2011-01-086-2358/+0
|
* Take all code from Asko Kauppi's SVN server, and push it here so that the ↵Benoit Germain2011-01-0423-492/+3319
| | | | | | | | | | | | github repository becomes the official Lanes source codebase. Note that Asko's SVN server holds version 2.0.9, whereas this is version 2.0.10, but I don't see any real need to update SVN if it is to become deprecated. Next steps: - upgrade the rockspec to the latest version - make the html help available online somewhere Signed-off-by: Benoit Germain <bnt.germain@gmail.com>
* Droping down CMake requirementv2.0.3Peter Drahoš2010-10-031-1/+1
|
* Merge branch 'master' of github.com:drahosp/lanesPeter Drahoš2010-10-010-0/+0
|\
| * First commit!Peter Drahoš2010-10-011-0/+0
|
* Import to gitPeter Drahoš2010-10-0147-0/+9195