From 00bfa229100a38687a0b76fbc53adf06d8b04eed Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 14 Dec 2012 15:53:48 +0100 Subject: lanes.threads(): documentation --- docs/index.html | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 1368928..f90a36e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -69,7 +69,7 @@

- This document was revised on 11-Dec-12, and applies to version 3.4.1. + This document was revised on 14-Dec-12, and applies to version 3.4.1.

@@ -232,6 +232,19 @@ + + + .track_lanes + + + nil/false/anything + + + Any non-nil|false value instructs Lanes keeps track of all lanes, so that lanes.threads() can list them. + Default tracking behavior will only enable to get information about free-running garbage collected lanes. + + + .on_create_state @@ -612,6 +625,27 @@

+ +
+

Tracking

+ + + + + +
+
	{}|nil = lanes.threads()
+
+ +

+ Only available if lane tracking feature is compiled (see HAVE_LANE_TRACKING in lanes.c). +
+ Returns a table where keys are a lane's name and values are the lane's status. Returns nil if no lane is running. +
+ The list contents depends on configuration option track_lanes. +

+ +

Results and errors

-- cgit v1.2.3-55-g6feb