static Map<Thread, Bool> _registerThread_threads; static O _onRegisterThread; // voidfunc(Thread) static Thread _registerThread(Thread t) { if (_registerThread_threads == null) _registerThread_threads = newWeakHashMap(); _registerThread_threads.put(t, true); vm_generalWeakSubMap("thread2mc").put(t, weakRef(mc())); callF(_onRegisterThread, t); ret t; } static void _registerThread() { _registerThread(Thread.currentThread()); }
download show line numbers debug dex old transpilations
Travelled to 18 computer(s): aoiabmzegqzx, ayfdnjdhpjha, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, kltaiputbqfu, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008274 |
| Snippet name: | _registerThread - register a thread as belonging to this program |
| Eternal ID of this version: | #1008274/14 |
| Text MD5: | e8836d506b1b014f74b168664dfb3f43 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-27 01:29:49 |
| Source code size: | 460 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 943 / 1040 |
| Version history: | 13 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008278 - _unregisterThread - opposite of _registerThread #1016553 - _registerThread_original - don't use |