From 2f7fbc306431a02a6f247148ebbda17b4c2d98f7 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 18 Sep 2014 16:49:31 +0200 Subject: New API lanes.sleep (bumped version to 3.9.7) --- docs/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index bfd26bb..e8dc94b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -70,7 +70,7 @@

- This document was revised on 17-Jun-14, and applies to version 3.9.6. + This document was revised on 18-Sep-14, and applies to version 3.9.7.

@@ -1291,6 +1291,14 @@ events to a common Linda, but... :). The full list of active timers can be obtained. Obviously, this is a snapshot, and non-repeating timers might no longer exist by the time the results are inspected.

+
+	void = lanes.sleep( [seconds|false])
+
+ +

+ (Since version 3.9.7) A very simple way of sleeping when nothing else is available. Is implemented by attempting to read some data in an unused channel of the internal linda used for timers (this linda exists even when timers aren't enabled). + Default duration is null, which should only cause a thread context switch. +


-- cgit v1.2.3-55-g6feb