note 126572 added to pht-atomicinteger.lock
| From: | Anonymous at main dot php dot net | Date: | Wed, 10 Nov 2021 04:53:54 +0000 |
| Subject: | note 126572 added to pht-atomicinteger.lock | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217173@lists.php.net to get a copy of this message | ||
Just a note that AtomicInteger should not expose Lock, as this is an implementation detail of
atomicity.
https://www.internalpointers.com/post/lock-free-multithreading-atomic-operations
While not all architectures have lock-free primitive support, the fact some do, mean that this
exposure is a second interface atop Atomicity of an Integer
final class AtomicLockingInteger extends AtomicInteger implements Lockable {
/** ... */
}
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 86.30.57.112)
----
Manual Page -- https://php.net/manual/en/pht-atomicinteger.lock.php
Edit -- https://main.php.net/note/edit/126572
Del: integrated -- https://main.php.net/note/delete/126572/integrated
Del: useless -- https://main.php.net/note/delete/126572/useless
Del: bad code -- https://main.php.net/note/delete/126572/bad+code
Del: spam -- https://main.php.net/note/delete/126572/spam
Del: non-english -- https://main.php.net/note/delete/126572/non-english
Del: in docs -- https://main.php.net/note/delete/126572/in+docs
Del: other reasons-- https://main.php.net/note/delete/126572
Reject -- https://main.php.net/note/reject/126572
Search -- https://main.php.net/manage/user-notes.php