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

13
LINES

< > BotCompany Repo | #1014696 // mechAppendQueue

JavaX fragment (include)

static Q mechAppendQueue_q;
static Lock mechAppendQueue_lock = lock();

static Q mechAppendQueue() {
  lock mechAppendQueue_lock;
  if (mechAppendQueue_q == null)
    mechAppendQueue_q = startQ();
  ret mechAppendQueue_q;
}

static void mechAppendQueue(Runnable r) {
  mechAppendQueue().add(r);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014696
Snippet name: mechAppendQueue
Eternal ID of this version: #1014696/5
Text MD5: 4698df776b9fd59104318acc70cb8af2
Author: stefan
Category: javax / mech lists
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-29 18:39:25
Source code size: 308 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 432
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014872 - mechQ - synonym of mechAppendQueue