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

13
LINES

< > BotCompany Repo | #1008279 // registeredThreads - list threads registered for module

JavaX fragment (include)

static L<Thread> registeredThreads(O o) {
  Map<Thread, Bool> map = cast getOpt(o, "_registerThread_threads");
  if (map == null) ret ll();
  map.size(); // force clean-up
  synchronized(map) { ret asList(keys(map)); }
}

please include function _registerThread.

static L<Thread> registeredThreads() {
  _registerThread_threads.size(); // force clean-up
  ret asList(keys(_registerThread_threads));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008279
Snippet name: registeredThreads - list threads registered for module
Eternal ID of this version: #1008279/7
Text MD5: d752e0433724aefa1042974f1ee68ffa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-08 14:24:42
Source code size: 413 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 637 / 717
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013154 - _registeredTimers - list timers registered for module