Class G.c.d.lockslibrary:

Part of GTG.core.datastore View In Hierarchy

The lock library.

Each task has a lock to avoid concurrency on the same task when writing/reading on/from the backend.

Method __init__ Undocumented
Method create_lock Undocumented
Method remove_lock Remove the lock for the task tid.
Method ifnotblocked Undocumented
Method acquire Undocumented
Method release Undocumented
def __init__(self):
Undocumented
def create_lock(self, tid):
Undocumented
def remove_lock(self, tid):
Remove the lock for the task tid.

You must have acquired a lock for tid before calling this function.

ParameterstidA task ID.
def ifnotblocked(self, tid):
Undocumented
def acquire(self, tid):
Undocumented
def release(self, tid):
Undocumented
API Documentation for GTG, generated by pydoctor at 2009-07-19 21:37:32.