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)

scope mechList_opt_tlft_cached.

static Map<S, MechListDependentCache<LS>> #cache = ciMap();
static Lock #lock = lock();

static LS mechList_opt_tlft_cached(S name) {
  MechListDependentCache<LS> listCache;
  {
    lock lock;
    listCache = cache.get(name);
    if (listCache == null)
       cache.put(name, listCache
        = MechListDependentCache(name, f<S, LS> tlft));
  }
  ret listCache!;
}

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: 243 / 303
Version history: 3 change(s)
Referenced in: [show references]