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

10
LINES

< > BotCompany Repo | #1003627 - isAWTThread

JavaX fragment (include)

// TODO: test if android complains about this
static bool isAWTThread() {
  if (isAndroid()) ret false;
  if (isHeadless()) ret false;
  ret isAWTThread_awt();
}

static bool isAWTThread_awt() {
  ret SwingUtilities.isEventDispatchThread();
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1003627
Snippet name: isAWTThread
Eternal ID of this version: #1003627/4
Text MD5: 00a0c292b49acafa808fb46f3e78fd34
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 18:02:13
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 753
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003627 & http://1003627.tinybrain.de