aboutsummaryrefslogtreecommitdiff
path: root/src/threading.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix some MinGW _WIN32_WINNT-related build issuesBenoit Germain2014-02-261-7/+15
|
* new API lanes.set_thread_priority()Benoit Germain2013-12-041-43/+41
|
* no need for pthread_cleanup_ pair when THREADWAIT_METHOD == THREADWAIT_CONDVARBenoit Germain2013-12-041-0/+5
|
* Fixed missing extern variable declarations resulting in multiple variable ↵Benoit Germain2013-12-021-1/+1
| | | | instances
* MinGW-pthread doesn't seem to have pthread_timedjoin_np after allBenoit Germain2013-12-021-1/+1
|
* pthread thread priority refacto: threading.hBenoit Germain2013-12-021-6/+3
|
* supposedly improved pthread supportBenoit Germain2013-11-291-1/+11
| | | | | | | | | * bumped version to 3.7.3 * set pthread thread cancel type to PTHREAD_CANCEL_ASYNCHRONOUS * lane_h:cancel() accepts a 3rd timeout argument used when waiting for actual thread termination (hitting the timeout raises an error) * added PROPAGATE_ALLOCF macro to select state creation mode (lua_newstate or luaL_newstate)
* MinGW-pthread supports -3/+3 thread priority range, so accept it API-side tooBenoit Germain2013-11-221-1/+4
|
* Fix some compiler-specific build issuesBenoit Germain2013-11-161-1/+7
|
* Fix windows build for WINVER > 0x400Benoit Germain2013-10-251-1/+1
|
* version 3.7.0Benoit Germain2013-10-111-1/+1
| | | | | | | | | | | | * fix lanes.threads() not being available in a lane where lanes.configure() settings didn't contain track_lanes although the initial configure() call did. * require "lanes".configure() sequence is only necessary at the first require "lanes". * fix a crash at application shutdown where in some situations we could deinitialize the protected allocator mutex while a lane was still using it. * fix timers broken by change 69
* Ditch PulseEvent usage on WIN32 buildsBenoit Germain2013-07-201-2/+10
|
* version 3.6.2Benoit Germain2013-05-201-8/+22
| | | | | * WIN32 builds use condition variables instead of PulseEvent() when available. * first steps toward fixing make-vc.cmd
* version 3.5.1v3.5.1Benoit Germain2013-02-131-6/+12
| | | | | | | * new lanes.h header and API call luaopen_lanes_embedded() for embedders * "lanes.core" is an acceptable library in the generator libs argument * library "*" wildcard also opens lanes.core * tweaked code for Xbox 360 build
* minor internal changesBenoit Germain2012-09-131-0/+1
| | | | | | * implemented set_debug_threadname() for pthread builds where possible * refactored linda __tostring and __concat * linda metatable's __metatable is a string instead of a boolean
* code tweaks to enable building against win32-pthread on windows platforms.Benoit Germain2012-09-111-3/+9
| | | | not active by default, see threading.h.
* version 3.3.0Benoit Germain2012-09-101-0/+3
| | | | | | | | | | | | * lane.status can return "killed" if lane was forcefully killed with lanes:cancel() * lane:join(): return nil, "killed" if called on a killed lane. * lane[<n>]: produces [1] = nil, [2] = "killed" if the lane was killed * lane:join(): fixed an assertion in debug builds when joining a lane forcefully cancelled with lane:cancel( <x>, true). * indexing a lane with a string other than "join", "cancel" or "status" raises an error. * fixed configure() to correctly apply defaults when they are missing from the provided settings * added a shutdown_timeout to control the duration Lanes will wait for graceful termination of running lanes at application shutdown. Default is 0.25. Among other things, fixes issue #31.
* Merge pull request #17 from LuaDist/550dd55b0e571577a4ca6ccc880738f1268adb57benoit-germain2012-04-241-13/+6
|\ | | | | merge commits from steve
| * MinGW build now does not use MS runtimesteve donovan2011-03-161-13/+6
| |
* | * removed packagepath and packagecpath options, replaced by a package table, ↵Benoit Germain2011-11-141-16/+39
|/ | | | | | | whose fields path, cpath, loaders, preload are transfered * code cleanup to facilitate transition between WIN32 and PTHREAD impleentations * tentative fix for desinit crashes when free running lanes are killed at process shutdown
* Import to gitPeter Drahoš2010-10-011-0/+196