|
21033 | 21033 | <typedef path="haxe.atomic._AtomicBool.AtomicBoolData" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicBool.hx" private="1" module="haxe.atomic.AtomicBool"><x path="Any"/></typedef> |
21034 | 21034 | <abstract path="haxe.atomic.AtomicBool" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicBool.hx"> |
21035 | 21035 | <this><t path="haxe.atomic._AtomicBool.AtomicBoolData"/></this> |
21036 | | - <haxe_doc>Atomic boolean. |
21037 | | - (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.</haxe_doc> |
21038 | 21036 | <impl><class path="haxe.atomic._AtomicBool.AtomicBool_Impl_" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicBool.hx" private="1" module="haxe.atomic.AtomicBool" extern="1" final="1"> |
21039 | 21037 | <_hx_new public="1" set="method" static="1"> |
21040 | 21038 | <f a="value"> |
|
21127 | 21125 | <typedef path="haxe.atomic._AtomicInt.AtomicIntData" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicInt.hx" private="1" module="haxe.atomic.AtomicInt"><x path="Any"/></typedef> |
21128 | 21126 | <abstract path="haxe.atomic.AtomicInt" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicInt.hx"> |
21129 | 21127 | <this><t path="haxe.atomic._AtomicInt.AtomicIntData"/></this> |
21130 | | - <haxe_doc>Atomic integer. |
21131 | | - (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.</haxe_doc> |
21132 | 21128 | <impl><class path="haxe.atomic._AtomicInt.AtomicInt_Impl_" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicInt.hx" private="1" module="haxe.atomic.AtomicInt" extern="1" final="1"> |
21133 | 21129 | <_hx_new public="1" set="method" static="1"> |
21134 | 21130 | <f a="value"> |
|
21311 | 21307 | <typedef path="haxe.atomic._AtomicObject.AtomicObjectData" params="T" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicObject.hx" private="1" module="haxe.atomic.AtomicObject"><x path="Any"/></typedef> |
21312 | 21308 | <abstract path="haxe.atomic.AtomicObject" params="T" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicObject.hx"> |
21313 | 21309 | <this><t path="haxe.atomic._AtomicObject.AtomicObjectData"><c path="haxe.atomic.AtomicObject.T"/></t></this> |
21314 | | - <haxe_doc>Atomic object. Use with care, this does not magically make it thread-safe to mutate objects. |
21315 | | - Not supported on JavaScript.</haxe_doc> |
21316 | 21310 | <impl><class path="haxe.atomic._AtomicObject.AtomicObject_Impl_" params="" file="/home/runner/work/haxe/haxe/std/eval/_std/haxe/atomic/AtomicObject.hx" private="1" module="haxe.atomic.AtomicObject" extern="1" final="1"> |
21317 | 21311 | <_hx_new public="1" set="method" static="1"> |
21318 | 21312 | <f a="value"> |
|
21328 | 21322 | <c path="haxe.atomic.AtomicObject.T"/> |
21329 | 21323 | <c path="haxe.atomic.AtomicObject.T"/> |
21330 | 21324 | </f> |
21331 | | - <haxe_doc>Atomically compares the value of `a` with `expected` and replaces `a` with `replacement` if they are equal. |
21332 | | - Returns the original value of `a`.</haxe_doc> |
| 21325 | + <haxe_doc>Atomically compares the value of `a` with `expected` and replaces `a` with `replacement` if they are equal.. |
| 21326 | + Returns the original value of `a`. |
| 21327 | + |
| 21328 | + Note that comparison is done by reference, and not by value. |
| 21329 | + While this is expected for most objects, this might give unexpected behaviour for strings.</haxe_doc> |
21333 | 21330 | </compareExchange> |
21334 | 21331 | <exchange public="1" set="method" static="1"> |
21335 | 21332 | <f a="this:value"> |
|
21373 | 21370 | <c path="haxe.atomic.AtomicObject.T"/> |
21374 | 21371 | <c path="haxe.atomic.AtomicObject.T"/> |
21375 | 21372 | </f> |
21376 | | - <haxe_doc>Atomically compares the value of `a` with `expected` and replaces `a` with `replacement` if they are equal. |
21377 | | - Returns the original value of `a`.</haxe_doc> |
| 21373 | + <haxe_doc>Atomically compares the value of `a` with `expected` and replaces `a` with `replacement` if they are equal.. |
| 21374 | + Returns the original value of `a`. |
| 21375 | + |
| 21376 | + Note that comparison is done by reference, and not by value. |
| 21377 | + While this is expected for most objects, this might give unexpected behaviour for strings.</haxe_doc> |
21378 | 21378 | </compareExchange> |
21379 | 21379 | <exchange public="1" set="method" static="1"> |
21380 | 21380 | <f a="this:value"> |
|
0 commit comments