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

5
LINES

< > BotCompany Repo | #1014826 // listThreadLocalAdd

JavaX fragment (include)

static <A> void listThreadLocalAdd(ThreadLocal<L<A>> tl, A a) {
  L<A> l = tl.get();
  if (l == null) tl.set(l = new L);
  l.add(a);
}

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: #1014826
Snippet name: listThreadLocalAdd
Eternal ID of this version: #1014826/1
Text MD5: d4ea35cb66da036727f90f509a696faf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-04 10:09:56
Source code size: 138 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 420
Referenced in: [show references]