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

14
LINES

< > BotCompany Repo | #1009320 // Test "lock x;" construct [OK]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (398L/3K/11K).

!759

static Lock lock = fairLock();

p {
  doIt();
  doIt();
  print("OK");
}

svoid doIt {
  lock lock;
  print("Have lock!");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009320
Snippet name: Test "lock x;" construct [OK]
Eternal ID of this version: #1009320/3
Text MD5: 1ee7160fd1b0a64ba89d3887b1a1a08c
Transpilation MD5: c9b06f052bb375a52cb73400479a5b27
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-23 19:13:42
Source code size: 143 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 424
Version history: 2 change(s)
Referenced in: [show references]