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

18
LINES

< > BotCompany Repo | #1022393 // mechList_opt_tlft_cached

JavaX fragment (include)

1  
scope mechList_opt_tlft_cached.
2  
3  
static Map<S, MechListDependentCache<LS>> #cache = ciMap();
4  
static Lock #lock = lock();
5  
6  
static LS mechList_opt_tlft_cached(S name) {
7  
  MechListDependentCache<LS> listCache;
8  
  {
9  
    lock lock;
10  
    listCache = cache.get(name);
11  
    if (listCache == null)
12  
       cache.put(name, listCache
13  
        = MechListDependentCache(name, f<S, LS> tlft));
14  
  }
15  
  ret listCache!;
16  
}
17  
18  
end scope

Author comment

Began life as a copy of #1014312

download  show line numbers  debug dex  old transpilations   

Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1022393
Snippet name: mechList_opt_tlft_cached
Eternal ID of this version: #1022393/4
Text MD5: a281a1a7d373f1fdf2cf62e0ab6a11a8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-16 17:19:25
Source code size: 426 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 235
Version history: 3 change(s)
Referenced in: [show references]