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

5
LINES

< > BotCompany Repo | #1030300 // tempSetMotherThread

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2587L/16K).

static AutoCloseable tempSetMotherThread(Thread t) {
  Thread old = FlexThreadLocal.motherThread();
  FlexThreadLocal.setMotherThread(t);
  ret autoCloseable { FlexThreadLocal.setMotherThread(old); };
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030300
Snippet name: tempSetMotherThread
Eternal ID of this version: #1030300/2
Text MD5: d484486a3713aa1e51c4a02eed09196f
Transpilation MD5: 6d62908c16c9cceeb3ff0c4621cfe088
Author: stefan
Category: javax / threads
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-28 00:45:00
Source code size: 206 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 101 / 155
Version history: 1 change(s)
Referenced in: [show references]