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

11
LINES

< > BotCompany Repo | #1005746 // dbBot - make bot exposing program's concepts, fail if bot exists (enforce single instance policy)

JavaX fragment (include)

static volatile Android3 dbBot_instance;

static Android3 dbBot(bool ensureNotRunning default true) {
  ret dbBot(dbBotStandardName(), ensureNotRunning);
}

static Android3 dbBot(S name, bool ensureNotRunning default true) {
  if (ensureNotRunning)
    ensureDBNotRunning(name);
  ret dbBot_instance = methodsBot2(name, assertNotNull(db_mainConcepts()), db_standardExposedMethods(), db_mainConcepts().lock);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005746
Snippet name: dbBot - make bot exposing program's concepts, fail if bot exists (enforce single instance policy)
Eternal ID of this version: #1005746/11
Text MD5: 67850233c966ca692718b93d5e96df27
Author: stefan
Category: javax / rpc / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-17 23:15:57
Source code size: 419 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 637 / 585
Version history: 10 change(s)
Referenced in: [show references]