angr.misc.picklable_lock¶
- class angr.misc.picklable_lock.PicklableLock¶
Bases:
objectNormal thread-locks are not pickleable. This provides a pickleable lock by mandating that the lock is unlocked during serialization.
- __init__(*args, **kwargs)¶
- acquire(*args, **kwargs)¶
- locked()¶
- release()¶
- class angr.misc.picklable_lock.PicklableRLock¶
Bases:
PicklableLockSame as above, but uses RLock instead of Lock for locking. Note that RLock does not provide an interface to tell whether is it presently held by any thread, and thus this class will lie about whether it is locked.
- locked()¶