module documentation
(source)

A module to provide some very basic threading primitives, such as synchronization.
Class ​Dummy​Lock Hack to allow locks to be unpickled on an unthreaded system.
Function get​Thread​ID Undocumented
Function init Initialize threading.
Function is​In​IOThread Are we in the thread responsible for I/O requests (the event loop)?
Function register​As​IOThread Mark the current thread as responsible for I/O requests.
Function synchronize Make all methods listed in each class' synchronized attribute synchronized.
Function unpickle​_lock Undocumented
Variable io​Thread Undocumented
Variable threaded Undocumented
Variable threadingmodule Undocumented
Variable ​XLock Undocumented
Function _sync Undocumented
Function _synch​Post Undocumented
Function _synch​Pre Undocumented
Variable _dummy​ID Undocumented
Variable _synch​Lock​Creator Undocumented
def getThreadID(): (source)

Undocumented

def init(with_threads=1): (source)

Initialize threading.

Don't bother calling this. If it needs to happen, it will happen.

def isInIOThread(): (source)
Are we in the thread responsible for I/O requests (the event loop)?
def registerAsIOThread(): (source)
Mark the current thread as responsible for I/O requests.
def synchronize(*klasses): (source)

Make all methods listed in each class' synchronized attribute synchronized.

The synchronized attribute should be a list of strings, consisting of the names of methods that must be synchronized. If we are running in threaded mode these methods will be wrapped with a lock.

def unpickle_lock(): (source)

Undocumented

ioThread = (source)

Undocumented

threaded: bool = (source)

Undocumented

threadingmodule = (source)

Undocumented

XLock = (source)

Undocumented

def _sync(klass, function): (source)

Undocumented

def _synchPost(self): (source)

Undocumented

def _synchPre(self): (source)

Undocumented

_dummyID = (source)

Undocumented

_synchLockCreator = (source)

Undocumented