Libraryless. Click here for Pure Java version (2587L/16K).
1 | static AutoCloseable tempSetMotherThread(Thread t) {
|
2 | Thread old = FlexThreadLocal.motherThread(); |
3 | FlexThreadLocal.setMotherThread(t); |
4 | ret autoCloseable { FlexThreadLocal.setMotherThread(old); };
|
5 | } |
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: | 361 / 479 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |