sclass PreIncLongCounter { long value; synchronized long get() { ret ++value; } synchronized void set(long value) { this.value = value; } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024380 |
Snippet name: | PreIncLongCounter - pre-increments on get() |
Eternal ID of this version: | #1024380/5 |
Text MD5: | e0e1266ae7a1d8921ca3da5d934a49fa |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-08 14:42:23 |
Source code size: | 153 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 269 / 626 |
Version history: | 4 change(s) |
Referenced in: | [show references] |