ThreadSafe

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

Bases: object

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

__init__(lockName='', recursive=False)
lock()
unlock()