From 2d5d798c24286f10c1bffd5ea4ac466c2c3a12fa Mon Sep 17 00:00:00 2001
From: Benoit Germain
Date: Wed, 30 Mar 2011 19:16:39 +0200
Subject: New features * linda honors __tostring and __concat * new accessor
linda:keys(), to retrieve the list of keys with pending data inside a linda *
new lanes options packagepath and packagecpath, in case one needs to set them
differently than the default
---
CHANGES | 5 +++
docs/index.html | 37 +++++++++++++--
src/keeper.lua | 22 +++++++--
src/lanes.c | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
src/lanes.lua | 9 +++-
5 files changed, 197 insertions(+), 12 deletions(-)
diff --git a/CHANGES b/CHANGES
index 58b6061..31ca342 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,11 @@ CHANGES:
CHANGE X:
+CHANGE 30 BGe 30-Mar-2011
+* linda honors __tostring and __concat
+* new accessor linda:keys(), to retrieve the list of keys with pending data inside a linda
+* new lanes options packagepath and packagecpath, in case one needs to set them differently than the default
+
CHANGE 29 BGe 1-Mar-2011
fixed potential crash at application shutdown when calling lua_close() on a killed thread's VM.
exposed cancel_test() in the lanes to enable manual testing for cancellation requests.
diff --git a/docs/index.html b/docs/index.html
index ba25515..7d61d96 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -263,6 +263,19 @@ also in the new lanes.
Implementation and dependability of priorities varies
by platform. Especially Linux kernel 2.6 is not supporting priorities in user mode.
+
+
+
+ |
+ .packagepath
+
.packagecpath
+ |
+
+ package.path and package.cpath overrides, if needed.
+ Specifying these when libs_str doesn't cause the package library to be loaded will generate an error.
+
+ |
+
Each lane also gets a function set_debug_threadname() that it can use anytime to do as the name says.
Supported debuggers are Microsoft Visual Studio (for the C side) and Decoda (for the Lua side).
@@ -547,7 +560,18 @@ They can be used for making shared tables of storage among the lanes.
Writing to a slot overwrites existing value, and clears any possible queued
entries. Table access and send/receive can be used together;
reading a slot essentially peeks the next outcoming value of a queue.
-
+
+
+
+
+
+ [val]= linda_h:keys()
+ |
+
+
+
+ A way to examine the slots in which a linda contains some pending data to be read.
+