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

19
LINES

< > BotCompany Repo | #1015191 // thingsOnScreenDefinitions2

JavaX fragment (include)

1  
sbool thingsOnScreenDefinitions2_alwaysReload;
2  
static SS thingsOnScreenDefinitions2;
3  
static Lock thingsOnScreenDefinitions2_lock = lock();
4  
static double thingsOnScreenDefinitions2_reloadEvery = 10;
5  
static long thingsOnScreenDefinitions2_lastReload;
6  
7  
static SS thingsOnScreenDefinitions2() {
8  
  lock thingsOnScreenDefinitions2_lock;
9  
  if (thingsOnScreenDefinitions2_reloadEvery > 0
10  
    && sysNow() >= thingsOnScreenDefinitions2_lastReload+toMS(thingsOnScreenDefinitions2_reloadEvery)) {
11  
    thingsOnScreenDefinitions2 = null;
12  
  }
13  
  if (thingsOnScreenDefinitions2 == null || thingsOnScreenDefinitions2_alwaysReload) {
14  
    //print("Loading thingsOnScreenDefinitions2");
15  
    thingsOnScreenDefinitions2_lastReload = sysNow();
16  
    thingsOnScreenDefinitions2 = hashMapFromLogFile(screenClipCommentsFile());
17  
  }
18  
  ret thingsOnScreenDefinitions2;
19  
}

Author comment

Began life as a copy of #1010889

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: #1015191
Snippet name: thingsOnScreenDefinitions2
Eternal ID of this version: #1015191/1
Text MD5: 8a0ffaff859789c1aba7c784c7f2ba2b
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 16:40:28
Source code size: 858 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 363 / 405
Referenced in: [show references]