1 | // returns (timer owner, timer, estimated firing time) or null |
2 | static T3<O, O, Long> nextFiringTimerInVM_withOwner() { |
3 | long time = now(); |
4 | Lowest<Pair<O>> best = new Lowest; |
5 | for (Class c : allMainClassesAndJavaX()) |
6 | for (O timer : unnull(_registeredTimersOf(c))) pcall { |
7 | long t = timer_nextFireTime(timer, time); |
8 | if (t != 0) |
9 | best.put(pair((O) c, timer), t); |
10 | } |
11 | ret best.has() ? t3(best->a, best->b, toLong(best.bestScore())) : null; |
12 | } |
Began life as a copy of #1017641
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: | #1017643 |
Snippet name: | nextFiringTimerInVM_withOwner |
Eternal ID of this version: | #1017643/3 |
Text MD5: | 41825bd1053d0dc16904e625f02054cf |
Author: | stefan |
Category: | javax / timers |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-31 13:55:04 |
Source code size: | 478 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 280 / 301 |
Version history: | 2 change(s) |
Referenced in: | [show references] |