1 | static <A> void listThreadLocalAdd(ThreadLocal<L<A>> tl, A a) { |
2 | L<A> l = tl.get(); |
3 | if (l == null) tl.set(l = new L); |
4 | l.add(a); |
5 | } |
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: | 391 / 421 |
Referenced in: | [show references] |