|
Holumbus.Distribution.DMVar | Portability | portable | Stability | experimental | Maintainer | Stefan Schmidt (stefanschmidt@web.de) |
|
|
|
|
|
Description |
Version : 0.1
This module offers the distributed MVar datatype.
The datatype behaves just like a normal MVar, but the content of the
variable may be stored on a different DNode. When accessing the DMVar,
the content will be fetched from the external node and written back.
It is guaranteed, that only one node at a time can take the content
of the DMVar. Just like normal DMVars, you can produce deadlocks.
When a node dies which holds the content of a DMVar, the node which
created the variable will reset its value to the last known value.
If the owner dies, the other nodes cannot access the content of the
DMVar any more.
|
|
Synopsis |
|
|
|
|
datatype
|
|
|
The DMVar datatype.
| Instances | |
|
|
creating and closing DMVars
|
|
|
Creates a new local DMVar with a start value.
The string parameter specifies the name of the variable.
If you leave it empty, a random value will be generated.
|
|
|
Creates a new empty local DMVar. The string parameter specifies the name of
the variable. If you leave it empty, a random value will be generated.
|
|
|
Creates a reference to an external DMVar.
The first parameter is the name of the resource and the second one
the name of the node.
|
|
|
Closes a DMVar
|
|
acccessing DMVars
|
|
|
Reads the content of a DMVar. Blocks if the Variable is empty.
This may throw an exception if the owner of the variable is unreachable.
|
|
|
Takes the content of a DMVar. Blocks if the Variable is empty.
This may throw an exception if the owner of the variable is unreachable.
|
|
|
Writes a value to the DMvar. Blocks if the Variable is not empty.
This may throw an exception if the owner of the variable is unreachable.
|
|
Produced by Haddock version 2.6.1 |