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

10
LINES

< > BotCompany Repo | #1012795 // beforeDelegatingToThread - hand over locks or thread local-information to new thread

JavaX fragment (include)

static L beforeDelegatingToThread_operations = synchroList();

static void beforeDelegatingToThread(Thread t) {
  for (O op : cloneList(beforeDelegatingToThread_operations))
    pcallF(op, t);
}

static void beforeDelegatingToThread_do(O f) {
  setAdd(beforeDelegatingToThread_operations, f);
}

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: #1012795
Snippet name: beforeDelegatingToThread - hand over locks or thread local-information to new thread
Eternal ID of this version: #1012795/7
Text MD5: e8bd7a53bd8af4eb5498c4c8708854f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-13 16:40:10
Source code size: 303 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 363 / 401
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012796 - afterDelegatingToThread - see beforeDelegatingToThread