Libraryless. Click here for Pure Java version (3207L/19K).
svoid cancelForeignThread(Thread t) { if (t == null) ret; O mc = getMainClassForThread(t); if (mc == null) ret with print("Can't find main class for thread " + t); ping(); Map ping_actions = cast get(mc, 'ping_actions); if (ping_actions == null) ret with print("No ping_actions"); synchronized(ping_actions) { ping_actions.put(t, "cancelled"); set(mc, ping_anyActions := true); print("Cancelled foreign thread: " + t); } } svoid cancelForeignThread(long threadID) { cancelForeignThread(getThreadByID(threadID)); }
Began life as a copy of #1004549
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031670 |
Snippet name: | cancelForeignThread - this whole thing should be reformed |
Eternal ID of this version: | #1031670/3 |
Text MD5: | c443a7c9bcaf06ddabbd41348645644e |
Transpilation MD5: | 72571768c2d273907b4c9b12e09d4441 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-25 13:02:57 |
Source code size: | 560 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 185 / 265 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |