A standard shared variable.
More...
|
def | __init__ (self, initial_value=None) |
| Constructs a shared variable. More...
|
|
def | write (self, item) |
| Updates the value of the shared variable. More...
|
|
def | read (self) |
| Access the value of the shared variable. More...
|
|
def | __init__ (self, initial_value=None) |
| Constructs a shared variable. More...
|
|
def | write (self, item) |
| Updates the value of the shared variable. More...
|
|
def | read (self) |
| Access the value of the shared variable. More...
|
|
A standard shared variable.
Values can be accessed with read() or changed with write()
◆ __init__() [1/2]
def shares.Share.__init__ |
( |
|
self, |
|
|
|
initial_value = None |
|
) |
| |
Constructs a shared variable.
- Parameters
-
initial_value | An optional initial value for the shared variable. |
◆ __init__() [2/2]
def shares.Share.__init__ |
( |
|
self, |
|
|
|
initial_value = None |
|
) |
| |
Constructs a shared variable.
- Parameters
-
initial_value | An optional initial value for the shared variable. |
◆ read() [1/2]
def shares.Share.read |
( |
|
self | ) |
|
Access the value of the shared variable.
- Returns
- The value of the shared variable
◆ read() [2/2]
def shares.Share.read |
( |
|
self | ) |
|
Access the value of the shared variable.
- Returns
- The value of the shared variable
◆ write() [1/2]
def shares.Share.write |
( |
|
self, |
|
|
|
item |
|
) |
| |
Updates the value of the shared variable.
- Parameters
-
item | The new value for the shared variable |
◆ write() [2/2]
def shares.Share.write |
( |
|
self, |
|
|
|
item |
|
) |
| |
Updates the value of the shared variable.
- Parameters
-
item | The new value for the shared variable |
The documentation for this class was generated from the following files: