1 | sbool thingsOnScreenDefinitions_alwaysReload; |
2 | static SS thingsOnScreenDefinitions; |
3 | static Lock thingsOnScreenDefinitions_lock = lock(); |
4 | static double thingsOnScreenDefinitions_reloadEvery = 10; |
5 | static long thingsOnScreenDefinitions_lastReload; |
6 | |
7 | static SS thingsOnScreenDefinitions() { |
8 | lock thingsOnScreenDefinitions_lock; |
9 | if (thingsOnScreenDefinitions_reloadEvery > 0 |
10 | && sysNow() >= thingsOnScreenDefinitions_lastReload+toMS(thingsOnScreenDefinitions_reloadEvery)) { |
11 | thingsOnScreenDefinitions = null; |
12 | } |
13 | if (thingsOnScreenDefinitions == null || thingsOnScreenDefinitions_alwaysReload) { |
14 | //print("Loading thingsOnScreenDefinitions"); |
15 | thingsOnScreenDefinitions_lastReload = sysNow(); |
16 | thingsOnScreenDefinitions = persistentHashMapFromProgram(thingsOnScreenDefinitionsDBID(), "Comments"); |
17 | } |
18 | ret thingsOnScreenDefinitions; |
19 | } |
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: | #1015194 |
Snippet name: | thingsOnScreenDefinitions_oldDB |
Eternal ID of this version: | #1015194/1 |
Text MD5: | 471ea4e0d34d1b530107dfeb3e3fd55f |
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 17:43:49 |
Source code size: | 870 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 349 / 383 |
Referenced in: | [show references] |