OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

Use Atomic vars in multithreaded env. ++num and num++ operations aren…

Open dk2k opened this issue 4 months ago • 4 comments

Brief description of changes. For volatile num: ++num transformed to num.incrementAndGet() num++ transformed to num.getAndIncrement()

dk2k avatar Oct 16 '24 19:10 dk2k