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)

static ThreadLocal<L<ImmL<S>>> gOtherLogs_data;

// for now we return L<L<S>> instead of L<ImmL<S>>
// because ImmL class loader problems
static L<L<S>> gOtherLogs() {
  gOtherLogs_init();
  ret unnull((L) gOtherLogs_data.get());
}

static void gOtherLogs_set(L<ImmL<S>> logs) {
  gOtherLogs_init();
  gOtherLogs_data.set(logs);
}

static void gOtherLogs_clear() {
  gOtherLogs_init();
  gOtherLogs_data.set(null);
}

static void gOtherLogs_init() {
  if (gOtherLogs_data == null) {
    gOtherLogs_data = (ThreadLocal) getOpt(creator(), "gOtherLogs_data");
    if (gOtherLogs_data == null) gOtherLogs_data = new ThreadLocal;
  }
}

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: 586 / 572
Referenced in: [show references]