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

6
LINES

< > BotCompany Repo | #1024380 - PreIncLongCounter - pre-increments on get()

JavaX fragment (include)

sclass PreIncLongCounter {
  long value;
  
  synchronized long get() { ret ++value; }
  synchronized void set(long value) { this.value = value; }
}

download  show line numbers  debug dex   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

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: 38 / 209
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1024380 & http://1024380.tinybrain.de