static ThreadLocal<L<S>> genLog_log; static L<S> genLog() { genLog_init(); L<S> log = genLog_log.get(); /*if (log == null) log = (L) callOpt(creator(), "genLog");*/ ret assertNotNull("No log set for this thread", log); } static void genLog_set(L<S> log) { genLog_init(); genLog_log.set(log); } static void genLog_clear() { genLog_init(); genLog_log.set(null); } static void genLog_init() { if (genLog_log == null) { genLog_log = (ThreadLocal) getOpt(creator(), "genLog_log"); if (genLog_log == null) genLog_log = new ThreadLocal; } }
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: | #1003810 |
Snippet name: | genLog, genLog_set, genLog_clear |
Eternal ID of this version: | #1003810/1 |
Text MD5: | fb4ea0757ba50ecd9fea4101adac75bb |
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-04 02:29:40 |
Source code size: | 594 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 738 / 723 |
Referenced in: | #1004002 - gLog, gLog_set, gLog_clear - synonyms of genLog*; gLogSet, gSet #1004207 - gOtherLogs - other logs for consideration in learning #1006654 - Standard functions list 2 (LIVE, continuation of #761) |