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

9
LINES

< > BotCompany Repo | #1011553 // incIntThreadLocal

JavaX fragment (include)

1  
static void incIntThreadLocal(ThreadLocal<Int> tl) {
2  
  tl.set(toInt(tl!)+1);
3  
}
4  
5  
ifclass BetterThreadLocal
6  
static void incIntThreadLocal(BetterThreadLocal<Int> tl) {
7  
  tl.set(toInt(tl!)+1);
8  
}
9  
endif

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: #1011553
Snippet name: incIntThreadLocal
Eternal ID of this version: #1011553/2
Text MD5: a64d1a0625abfbba87e527edfe70eace
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-01 02:33:54
Source code size: 204 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 396
Version history: 1 change(s)
Referenced in: [show references]