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

9
LINES

< > BotCompany Repo | #1011553 // incIntThreadLocal

JavaX fragment (include)

static void incIntThreadLocal(ThreadLocal<Int> tl) {
  tl.set(toInt(tl!)+1);
}

ifclass BetterThreadLocal
static void incIntThreadLocal(BetterThreadLocal<Int> tl) {
  tl.set(toInt(tl!)+1);
}
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: 383 / 397
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)