MoonGen
 All Files Functions Variables Pages
pipe.lua File Reference

Pipe ... More...

Go to the source code of this file.

Functions

function mod newSlowPipe ()
 Create a new slow pipe. More...
 

Detailed Description

Pipe ...

Todo:
TODO docu

Definition in file pipe.lua.

Function Documentation

function mod newSlowPipe ( )

Create a new slow pipe.

A pipe can only be used by exactly two tasks: a single reader and a single writer. Slow pipes are called slow pipe because they are slow (duh). Any objects passed to it will be serialized as strings. This means that it supports arbitrary Lua objects following MoonGens usual serialization rules. Use a 'fast pipe' if you need fast inter-task communication. Fast pipes are restricted to LuaJIT FFI objects.