diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2012-12-14 15:53:48 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2012-12-14 15:53:48 +0100 |
commit | 00bfa229100a38687a0b76fbc53adf06d8b04eed (patch) | |
tree | aaef2f80be4f9a82da92e18397841d755100ea4c | |
parent | 3ac125a9e5715a5d163856c8ab91123a13a206b7 (diff) | |
download | lanes-00bfa229100a38687a0b76fbc53adf06d8b04eed.tar.gz lanes-00bfa229100a38687a0b76fbc53adf06d8b04eed.tar.bz2 lanes-00bfa229100a38687a0b76fbc53adf06d8b04eed.zip |
lanes.threads(): documentation
-rw-r--r-- | docs/index.html | 36 |
1 files changed, 35 insertions, 1 deletions
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 @@ | |||
69 | </p> | 69 | </p> |
70 | 70 | ||
71 | <p> | 71 | <p> |
72 | This document was revised on 11-Dec-12, and applies to version <tt>3.4.1</tt>. | 72 | This document was revised on 14-Dec-12, and applies to version <tt>3.4.1</tt>. |
73 | </p> | 73 | </p> |
74 | </font> | 74 | </font> |
75 | </center> | 75 | </center> |
@@ -233,6 +233,19 @@ | |||
233 | </tr> | 233 | </tr> |
234 | 234 | ||
235 | <tr valign=top> | 235 | <tr valign=top> |
236 | <td id="track_lanes"> | ||
237 | <code>.track_lanes</code> | ||
238 | </td> | ||
239 | <td> | ||
240 | <tt>nil</tt>/<tt>false</tt>/anything | ||
241 | </td> | ||
242 | <td> | ||
243 | Any non-<tt>nil|false</tt> value instructs Lanes keeps track of all lanes, so that <a href="#tracking"><tt>lanes.threads()</tt></a> can list them. | ||
244 | Default tracking behavior will only enable to get information about free-running garbage collected lanes. | ||
245 | </td> | ||
246 | </tr> | ||
247 | |||
248 | <tr valign=top> | ||
236 | <td> | 249 | <td> |
237 | <code>.on_create_state</code> | 250 | <code>.on_create_state</code> |
238 | </td> | 251 | </td> |
@@ -612,6 +625,27 @@ | |||
612 | </p> | 625 | </p> |
613 | 626 | ||
614 | 627 | ||
628 | <!-- tracking +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
629 | <hr/> | ||
630 | <h2 id="tracking">Tracking</h2> | ||
631 | |||
632 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"> | ||
633 | <tr> | ||
634 | <td> | ||
635 | <pre> {}|nil = lanes.threads()</pre> | ||
636 | </td> | ||
637 | </tr> | ||
638 | </table> | ||
639 | |||
640 | <p> | ||
641 | Only available if lane tracking feature is compiled (see <tt>HAVE_LANE_TRACKING</tt> in <tt>lanes.c</tt>). | ||
642 | <br> | ||
643 | Returns a table where keys are a lane's name and values are the lane's status. Returns <tt>nil</tt> if no lane is running. | ||
644 | <br> | ||
645 | The list contents depends on configuration option <a href="#track_lanes"><tt>track_lanes</tt></a>. | ||
646 | </p> | ||
647 | |||
648 | |||
615 | <!-- results +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 649 | <!-- results +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
616 | <hr/> | 650 | <hr/> |
617 | <h2 id="results">Results and errors</h2> | 651 | <h2 id="results">Results and errors</h2> |