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

25
LINES

< > BotCompany Repo | #1004207 // gOtherLogs - other logs for consideration in learning

JavaX fragment (include)

1  
static ThreadLocal<L<ImmL<S>>> gOtherLogs_data;
2  
3  
// for now we return L<L<S>> instead of L<ImmL<S>>
4  
// because ImmL class loader problems
5  
static L<L<S>> gOtherLogs() {
6  
  gOtherLogs_init();
7  
  ret unnull((L) gOtherLogs_data.get());
8  
}
9  
10  
static void gOtherLogs_set(L<ImmL<S>> logs) {
11  
  gOtherLogs_init();
12  
  gOtherLogs_data.set(logs);
13  
}
14  
15  
static void gOtherLogs_clear() {
16  
  gOtherLogs_init();
17  
  gOtherLogs_data.set(null);
18  
}
19  
20  
static void gOtherLogs_init() {
21  
  if (gOtherLogs_data == null) {
22  
    gOtherLogs_data = (ThreadLocal) getOpt(creator(), "gOtherLogs_data");
23  
    if (gOtherLogs_data == null) gOtherLogs_data = new ThreadLocal;
24  
  }
25  
}

Author comment

Began life as a copy of #1003810

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004207
Snippet name: gOtherLogs - other logs for consideration in learning
Eternal ID of this version: #1004207/1
Text MD5: 3663caf59c43d4ae194e311e56f7c69c
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-10 17:10:36
Source code size: 654 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 662 / 650
Referenced in: [show references]