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

10
LINES

< > BotCompany Repo | #1031844 // tempExternalMutexFor (backup)

JavaX fragment (include)

static AutoCloseable tempExternalMutexFor(O o) {
  Map map = externalMutexMap();
  synchronized(map) {
    O mutex = map.get(o);
    if (mutex == null)
      map.put(o, mutex = new ExternalMutex);
    mutex.referenceCount++;
    ret mutex;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031844
Snippet name: tempExternalMutexFor (backup)
Eternal ID of this version: #1031844/2
Text MD5: 690954772830e64fd6eba7ce0dfcacbf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-16 05:28:20
Source code size: 254 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 121 / 142
Version history: 1 change(s)
Referenced in: [show references]