1 | static bool unlockIfHolding(Lock lock) {
|
2 | if (lock == null || !hasLock(lock)) false; |
3 | unlock(lock); |
4 | true; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012293 |
| Snippet name: | unlockIfHolding - returns true if we had the lock |
| Eternal ID of this version: | #1012293/1 |
| Text MD5: | 97909e67577987ef9a6cb4d05c47b2f6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-27 12:56:12 |
| Source code size: | 115 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 620 / 663 |
| Referenced in: | [show references] |