Skip to content

tensorplay.multiprocessing

Classes

class Process

python
Process(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Bases: BaseProcess

Methods

__init__(self, group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Initialize self. See help(type(self)) for accurate signature.


close(self)

Close the Process object.

This method releases resources held by the Process object. It is an error to call this method if the child process is still running.


is_alive(self)

Return whether process is alive


join(self, timeout=None)

Wait until child process terminates


kill(self)

Terminate process; sends SIGKILL signal or uses TerminateProcess()


run(self)

Method to be run in sub-process; can be overridden in sub-class


start(self)

Start child process


terminate(self)

Terminate process; sends SIGTERM signal or uses TerminateProcess()


Functions

active_children()

python
active_children()

Return list of process objects corresponding to live child processes

current_process()

python
current_process()

Return process object representing the current process

get_context() [source]

python
get_context(method=None)

Released under the Apache 2.0 License.

📚DeepWiki