Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1012293 // unlockIfHolding - returns true if we had the lock

JavaX fragment (include)

static bool unlockIfHolding(Lock lock) {
  if (lock == null || !hasLock(lock)) false;
  unlock(lock);
  true;
}

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: 399 / 435
Referenced in: [show references]