ThreadSafe

class DIRAC.Core.Utilities.ThreadSafe.Synchronizer(lockName='', recursive=False)

Class encapsulating a lock allowing it to be used as a synchronizing decorator making the call thread-safe

__init__(lockName='', recursive=False)
lock()
unlock()
class DIRAC.Core.Utilities.ThreadSafe.WORM(maxReads=10)

Write One - Read Many

__init__(maxReads=10)
read(funcToCall)

Read decorator

write(funcToCall)

Write decorator