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


< > BotCompany Repo | #1008274 // _registerThread - register a thread as belonging to this program

JavaX fragment (include)

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() {

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: 607 / 701
Version history: 13 change(s)
Referenced in: [show references]