jacinle.concurrency.event#

Classes

BooleanEvent

MPBooleanEvent

alias of MultiProcessingImpl

MPLibExtension

MTBooleanEvent

alias of MultiThreadingImpl

MTCoordinatorEvent

Functions

OrEvent(*events[, mplib])

Waiting on several events together.

instantiate_mplib_ext(base_class)

Class BooleanEvent

class BooleanEvent[source]#

Bases: MPLibExtension

__init__()[source]#
__new__(**kwargs)#
clear()[source]#
is_false()[source]#
is_true()[source]#
set()[source]#
set_false()[source]#
set_true()[source]#
value()[source]#
wait(predicate=True, timeout=None)[source]#
wait_false(timeout=None)[source]#
wait_true(timeout=None)[source]#

Class MPBooleanEvent

MPBooleanEvent#

alias of MultiProcessingImpl

Class MPLibExtension

class MPLibExtension[source]#

Bases: object

__init__()#
__new__(**kwargs)#

Class MTBooleanEvent

MTBooleanEvent#

alias of MultiThreadingImpl

Class MTCoordinatorEvent

class MTCoordinatorEvent[source]#

Bases: object

__init__(nr_workers)[source]#
__new__(**kwargs)#
broadcast()[source]#
check()[source]#
wait()[source]#

Functions

OrEvent(*events, mplib=threading)[source]#

Waiting on several events together. http://stackoverflow.com/questions/12317940/python-threading-can-i-sleep-on-two-threading-events-simultaneously

instantiate_mplib_ext(base_class)[source]#