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

11
LINES

< > BotCompany Repo | #1020875 - dm_current_generic

JavaX fragment (include)

// named like this for historic reasons
static new InheritableThreadLocal<WeakReference> dm_currentModule_value;

sO dm_current_generic() {
  ret getWeakRef(dm_currentModule_value!);
}

// prevent memory leak
svoid cleanMeUp_dm_current_generic {
  dm_currentModule_value = new InheritableThreadLocal;
}

Author comment

Began life as a copy of #1019380

download  show line numbers  debug dex   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, lnbujpyubztb, mqqgnosmbjvj, omdjrrnzbjjv, pzhvpgtvlbxg, tvejysmllsmz, whxojlpjdney

No comments. add comment

Snippet ID: #1020875
Snippet name: dm_current_generic
Eternal ID of this version: #1020875/5
Text MD5: ee1e13d7e234e708009ee0850f60fa53
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-02 16:04:47
Source code size: 312 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 103 / 248
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1020875 & http://1020875.tinybrain.de