1 | static AutoCloseable tempExternalMutexFor(O o) { |
2 | Map map = externalMutexMap(); |
3 | synchronized(map) { |
4 | O mutex = map.get(o); |
5 | if (mutex == null) |
6 | map.put(o, mutex = new ExternalMutex); |
7 | mutex.referenceCount++; |
8 | ret mutex; |
9 | } |
10 | } |
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: | 123 / 144 |
Version history: | 1 change(s) |
Referenced in: | [show references] |