I want fasteners to provide method decorators for thread locks through fasteners.locked …
I want fasteners to provide method decorators for thread locks through fasteners.locked …: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). fasteners.locked( args, lock=" lock", logger=None) should work both as @fasteners.locked and as @fasteners.locked(lock="custom…
The task
`fasteners.locked(*args, lock="_lock", logger=None)` should work both as `@fasteners.locked` and as `@fasteners.locked(lock="custom_attr")`. When a decorated instance method is called, it should look up the named lock attribute on `self`, acquire it before invoking the method with the original `self`, positional…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.