flightgear_python.general_util.EventPipe
- class flightgear_python.general_util.EventPipe(duplex=True)
Bases:
objectHelper abstraction for passing data from a parent process to a child process.
- Parameters:
duplex – Allow internal pipe to also pass data from child to parent. Recommended to leave at default
- __init__(duplex=True)
Methods
child_recv(*args, **kwargs)Receive data from the parent process to the child process, then clear our event flag
parent_send(*args, **kwargs)Send data from the parent process to the child process, then set our event flag
- child_recv(*args, **kwargs)
Receive data from the parent process to the child process, then clear our event flag
- Parameters:
args – Passed to
multiprocessing.connection.Connection.recv()kwargs – Passed to
multiprocessing.connection.Connection.recv()
- Return type:
- parent_send(*args, **kwargs)
Send data from the parent process to the child process, then set our event flag
- Parameters:
args – Passed to
multiprocessing.connection.Connection.send()kwargs – Passed to
multiprocessing.connection.Connection.send()