java.lang.Runnable
public static class User32Util.MessageLoopThread
extends java.lang.Thread
Modifier and Type | Class | Description |
---|---|---|
class |
User32Util.MessageLoopThread.Handler |
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> java.util.concurrent.Future<V> |
runAsync(java.util.concurrent.Callable<V> command) |
|
<V> V |
runOnThread(java.util.concurrent.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 run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public <V> java.util.concurrent.Future<V> runAsync(java.util.concurrent.Callable<V> command)
public <V> V runOnThread(java.util.concurrent.Callable<V> callable) throws java.lang.Exception
java.lang.Exception
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.