Warning: session_start(): open(/var/lib/php/sessions/sess_pun21dsqdb7qmah9bc44cka49r, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
listThreadLocalPopLast - remove & return last element [1014827]

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

7
LINES

< > BotCompany Repo | #1014827 // listThreadLocalPopLast - remove & return last element

JavaX fragment (include)

static <A> A listThreadLocalPopLast(ThreadLocal<L<A>> tl) {
  L<A> l = tl.get();
  if (l == null) null;
  A a = popLast(l);
  if (empty(l)) tl.set(null);
  ret a;
}

Author comment

Began life as a copy of #1014826

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: #1014827
Snippet name: listThreadLocalPopLast - remove & return last element
Eternal ID of this version: #1014827/1
Text MD5: be3facfc26f4684e3486c8ae65e54b43
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:11:31
Source code size: 170 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 660 / 713
Referenced in: [show references]