Class Shm

Package :
ipc

This class provides an inter process shared variable facility. The implementation requires the accompanying C library uniipclib.so to be on the library path.

Instances of this class should not be created directly, but rather using the factory procedures open_public_shm, create_public_shm and create_private_shm

Source

Class summary
Methods defined in this class
get_id() get_value() remove() set_value(o)
Variables defined in this class
id

Method detail

get_id()

Return the underlying id of the shared variable.
Source

get_value()

Get the value of the object.
Source

remove()

Clean up the resources used by the variable. This should be called by the parent process after the shared variable is no longer needed.
Source

set_value(o)

Set the value to the given object. The object may be an arbitrary Icon structure, and will be encoded into a string by the encode() procedure. As such, if the encoded object contains a class then that class must subclass ClassCoding
Source

Variable detail

id