jacinle.concurrency.process#

Classes

Class JacProcess

class JacProcess[source]#

Bases: Process

__call__()[source]#

Call self as a function.

__init__(*args, extra_env=None, seed=None, **kwargs)[source]#
__new__(**kwargs)#
close()#

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()#

Return whether process is alive

join(timeout=None)#

Wait until child process terminates

kill()#

Terminate process; sends SIGKILL signal or uses TerminateProcess()

run()[source]#

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

start()#

Start child process

terminate()#

Terminate process; sends SIGTERM signal or uses TerminateProcess()

property authkey#
property daemon#

Return whether process is a daemon

property exitcode#

Return exit code of process or None if it has yet to stop

property ident#

Return identifier (PID) of process or None if it has yet to start

property name#
property pid#

Return identifier (PID) of process or None if it has yet to start

property sentinel#

Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.