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

18
LINES

< > BotCompany Repo | #1006002 // Test safe DB threading with foreign injections

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

Libraryless. Click here for Pure Java version (6620L/44K/148K).

1  
!752
2  
3  
concepts.
4  
5  
p {
6  
  conceptsAndBot();
7  
  
8  
  while licensed {
9  
    mainConcepts.lock.lock();
10  
    try {
11  
      print("Sleeping locked for 5...");
12  
      sleepSeconds(5);
13  
      print("Done!");
14  
    } finally {
15  
      mainConcepts.lock.unlock();
16  
    }
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006002
Snippet name: Test safe DB threading with foreign injections
Eternal ID of this version: #1006002/1
Text MD5: 63454e61aa00b6e36db8c67c68648687
Transpilation MD5: 743c76ad4aa57e001debed295e160413
Author: stefan
Category: javax / concepts / ipc
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-14 02:29:37
Source code size: 267 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 369 / 440
Referenced in: [show references]