Returns a manager associated with a running server process The managers methods such as `Lock()`, `Condition()` and `Queue()` can be used to create shared objects.
(self)
| 47 | return num |
| 48 | |
| 49 | def Manager(self): |
| 50 | '''Returns a manager associated with a running server process |
| 51 | |
| 52 | The managers methods such as `Lock()`, `Condition()` and `Queue()` |
| 53 | can be used to create shared objects. |
| 54 | ''' |
| 55 | from .managers import SyncManager |
| 56 | m = SyncManager(ctx=self.get_context()) |
| 57 | m.start() |
| 58 | return m |
| 59 | |
| 60 | def Pipe(self, duplex=True): |
| 61 | '''Returns two connection object connected by a pipe''' |