Source

lua.channels /

Filename Size Date modified Message
src
tests
993 B
waf
88.4 KB
1016 B
1. Description

  Lua.Channels is a Lua extension library that adds asynchronous channels to
transfer Lua values between different Lua states in a thread-safe manner.

2. Build

lua.channels uses Waf build tool, present in the distribution as script. Requires Python 2.4-3.2.

Prerequisites:

- Boost (author compiles against 1.50)
- Lua 5.1.5 compiled from source

Configure (one-time):
	python waf configure --boost-root <path-to-boost-distribution> --lualib-root <path-to-Lua-SDK>
Build (after configure):
	python waf

3. Usage

Place channels.dll somewhere in package search path
From lua:
require "channels"

4. API

channels.new(["name"])
	creates new channel, optionally named "name"
	If channel is named, it's placed into global channels registry.
		
	return:
		new channel object
channels.get("name")
	retrieves existing channel by name; name should be string
	
	return:
		channel object reference, if found
		nil, if no such channel present
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.