static bool atomicFlipVarToFalse(Var<Bool> v) { synchronized(v) { if (!isTrue(v.get())) false; v.set(false); true; } }
Began life as a copy of #1015837
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015838 |
Snippet name: | atomicFlipVarToFalse |
Eternal ID of this version: | #1015838/1 |
Text MD5: | e62ed8631dd1d5c4a309c284ebb64c78 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-28 16:58:57 |
Source code size: | 135 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 331 / 380 |
Referenced in: | [show references] |