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

7
LINES

< > BotCompany Repo | #1002946 // threadID

JavaX fragment (include)

static long threadID() {
  ret currentThread().getId();
}

static long threadID(Thread t) {
  ret t == null ? 0 : t.getId();
}

Author comment

Began life as a copy of #1001730

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002946
Snippet name: threadID
Eternal ID of this version: #1002946/2
Text MD5: 2faee0a868ccfd81b56cfec97449cb40
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-25 12:45:50
Source code size: 132 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 698 / 635
Version history: 1 change(s)
Referenced in: [show references]