Package wtf :: Package opi :: Package worker :: Module threaded :: Class Flags
[hide private]
[frames] | no frames]

Class Flags

source code

object --+
         |
        Flags

Flag container for workers
Instance Methods [hide private]
 
__init__(self, shutdown=False)
Initialization
source code
bool
shutdown(self, flag=None)
Set and/or retrieve shutdown flag
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __implements__ = [<class 'wtf.impl.FlagsInterface'>]
  multithread = True
  multiprocess = False
  run_once = False
Instance Variables [hide private]
  _shutdown
Shutdown flag and mutex ((bool, threading.Lock))
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, shutdown=False)
(Constructor)

source code 
Initialization
Parameters:
  • shutdown (bool) - Initial state of shutdown flag
Overrides: object.__init__

shutdown(self, flag=None)

source code 
Set and/or retrieve shutdown flag
Parameters:
  • flag (bool) - The new shutdown flag value (or None)
Returns: bool
The previous state of the flag