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

11
LINES

< > BotCompany Repo | #1033340 // pingSource [ping_v3]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4589L/26K).

// assumptions:
// -pingSource() stays constant within a stack frame (so you can cache it)
// -all changes happen with tempSetPingSource
// -multiple threads can share a PingSource
static PingSource pingSource() {
  ret pingSource_tl()!;
}

static PingSource pingSource(Thread thread) {
  ret pingSource_tl().get(thread);
}

Author comment

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: 141 / 240
Version history: 5 change(s)
Referenced in: [show references]