Libraryless. Click here for Pure Java version (4589L/26K).
1 | // assumptions: |
2 | // -pingSource() stays constant within a stack frame (so you can cache it) |
3 | // -all changes happen with tempSetPingSource |
4 | // -multiple threads can share a PingSource |
5 | static PingSource pingSource() { |
6 | ret pingSource_tl()!; |
7 | } |
8 | |
9 | static PingSource pingSource(Thread thread) { |
10 | ret pingSource_tl().get(thread); |
11 | } |
Began life as a copy of #1033339
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, gjtlkbvenryc, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1033340 |
Snippet name: | pingSource [ping_v3] |
Eternal ID of this version: | #1033340/6 |
Text MD5: | 64ff16bd2ff4556f0449d93ac5b222a0 |
Transpilation MD5: | b308ff9221b96882fb8a7c99e19e985d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-11-01 23:55:13 |
Source code size: | 333 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 242 / 366 |
Version history: | 5 change(s) |
Referenced in: | [show references] |