Create a guard associated with the specified qlock.
Create a guard associated with the specified qlock. Acquire the lock unless the (optionally) specified doLock is false. If the lock is not free, block until it can be acquired.
| Name | Description |
|---|---|
| qlock | QLock with which to associate this guard |
| doLock | if true (the default), acquire the lock on construction |