From ff74281fc94cda26b2d0a7fc2424f24fe2488718 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 29 Nov 2013 20:33:46 +0100 Subject: supposedly improved pthread support * 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) --- docs/index.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 40930d8..25f9e22 100644 --- a/docs/index.html +++ b/docs/index.html @@ -70,7 +70,7 @@
- This document was revised on 16-Nov-13, and applies to version 3.7.2. + This document was revised on 28-Nov-13, and applies to version 3.7.3.
@@ -102,7 +102,7 @@.priority
- bool[,reason] = lane_h:cancel( [timeout_secs=0.0,] [force_kill_bool = false] ) + bool[,reason] = lane_h:cancel( [timeout_secs=0.0,] [force_kill_bool = false] [, forcekill_timeout=0.0]) |
- cancel()sends a cancellation request to the lane.
+ cancel() sends a cancellation request to the lane.
+ If timeout_secs is negative (aka "soft cancel"), starting with version 3.6.3, will only cause cancel_test() to return true, so that the lane can cleanup manually (the actual value is irrelevant). You can't provide the additional arguments in that case.
If timeout_secs is positive (aka "hard cancel"), waits for the request to be processed, or a timeout to occur.
- If timeout_secs is negative (aka "soft cancel"), starting with version 3.6.3, will only cause cancel_test() to return true, so that the lane can cleanup manually. You can't provide a second argument in that case.
- Returns true if soft cancelling, or the lane was already done (in "done", "error" or "cancelled" status), or the cancellation was fruitful within timeout period.
+ If force_kill_bool is true, forcekill_timeout can be set to tell how long lanes will wait for the OS thread to terminate before raising an error. Windows threads always terminate immediately, but it might not always be the case with some pthread implementations.
+ Returns true if soft cancelling, or the lane was already done (in "done", "error" or "cancelled" status), or the cancellation was fruitful within timeout_secs timeout period.
-- cgit v1.2.3-55-g6feb