Transpiled version (2546L) is out of date.
1 | static AutoCloseable tempVerboseLock(S purpose default "", Lock lock) { |
2 | if (lock == null) null; |
3 | S desc = dropPrefix("java.util.concurrent.locks.", str(lock)) + appendIfNempty2(" for ", purpose); |
4 | print("Locking " + desc + " in " + currentThread()); |
5 | lock(lock); |
6 | print_noFail("Locked " + desc + " in " + currentThread()); |
7 | ret () -> { |
8 | print_noFail("Unlocking " + desc + " in " + currentThread()); |
9 | unlock(lock); |
10 | }; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029509 |
Snippet name: | tempVerboseLock |
Eternal ID of this version: | #1029509/6 |
Text MD5: | b7ed89d2f52d73c34c85da3dae455825 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-16 20:01:17 |
Source code size: | 443 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 297 |
Version history: | 5 change(s) |
Referenced in: | [show references] |