Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1015838 // atomicFlipVarToFalse

JavaX fragment (include)

static bool atomicFlipVarToFalse(Var<Bool> v) {
  synchronized(v) {
    if (!isTrue(v.get())) false;
    v.set(false); true;
  }
}

Author comment

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: 333 / 381
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)