(PECL swoole >= 1.9.0)
Swoole\Atomic::cmpset — Compare and set the value of the atomic object.
cmp_value
The value to compare with the current value of the atomic object.
new_value
The value to set to the atomic object if the cmp_value is the same as the current value of the atomic object.
The new value of the atomic object.
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant