Runnable
public static class User32Util.MessageLoopThread extends Thread
Modifier and Type | Class | Description |
---|---|---|
class |
User32Util.MessageLoopThread.Handler |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor | Description |
---|---|
MessageLoopThread() |
Modifier and Type | Method | Description |
---|---|---|
void |
exit() |
|
protected boolean |
getMessageFailed() |
The method is called from the thread, that run the message dispatcher,
when the call to
User32.GetMessage(com.sun.jna.platform.win32.WinUser.MSG, com.sun.jna.platform.win32.WinDef.HWND, int, int)
fails (returns -1 ). |
void |
run() |
|
<V> Future<V> |
runAsync(Callable<V> command) |
|
<V> V |
runOnThread(Callable<V> callable) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void exit()
protected boolean getMessageFailed()
User32.GetMessage(com.sun.jna.platform.win32.WinUser.MSG, com.sun.jna.platform.win32.WinDef.HWND, int, int)
fails (returns -1
).
If the method returns true
, the MainLoop is exitted, if it
returns false
the mainloop is resumed.
Default behavior: The error code is logged to the com.sun.jna.platform.win32.User32Util.MessageLoopThread logger and the main loop exists.