Package cherrypy :: Package process :: Module win32 :: Class Win32Bus
[hide private]
[frames] | no frames]

Class Win32Bus

source code

object --+    
         |    
wspbus.Bus --+
             |
            Win32Bus

A Web Site Process Bus implementation for Win32.

Instead of time.sleep, this bus blocks using native win32event objects.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_get_state_event(self, state)
Return a win32event for the given state (creating it if needed).
source code
 
_get_state(self) source code
 
_set_state(self, value) source code
 
wait(self, state, interval=0.1, channel=None)
Wait for the given state(s), KeyboardInterrupt or SystemExit.
source code

Inherited from wspbus.Bus: block, exit, graceful, log, publish, restart, start, start_with_callback, stop, subscribe, unsubscribe

Inherited from wspbus.Bus (private): _clean_exit, _do_execv, _set_cloexec

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

Class Variables [hide private]
  state = property(_get_state, _set_state)

Inherited from wspbus.Bus: execv, max_cloexec_files, states

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

wait(self, state, interval=0.1, channel=None)

source code 

Wait for the given state(s), KeyboardInterrupt or SystemExit.

Since this class uses native win32event objects, the interval argument is ignored.

Overrides: wspbus.Bus.wait