Lock acquires a read lock on the policy store, ensuring the store's state remains unchanged while locked. Multiple readers can hold the lock simultaneously. It returns an error if the store cannot be locked.
()
| 59 | // Multiple readers can hold the lock simultaneously. |
| 60 | // It returns an error if the store cannot be locked. |
| 61 | Lock() error |
| 62 | // Unlock unlocks the policy store. |
| 63 | // It is a run-time error if the store is not locked on entry to Unlock. |
| 64 | Unlock() |
no outgoing calls