A managed thread.
More...
◆ ManagedThread()
Initializes a new instance of the ManagedThread class.
- Parameters
-
loop | The loop to run on the thread. |
◆ dispatch()
static void fm.liveswitch.ManagedThread.dispatch |
( |
final IAction0 |
action | ) |
|
|
static |
Dispatches an action to a background thread.
- Parameters
-
◆ getCurrentThreadId()
static long fm.liveswitch.ManagedThread.getCurrentThreadId |
( |
| ) |
|
|
static |
Gets the id for the current thread.
◆ loopBegin()
void fm.liveswitch.ManagedThread.loopBegin |
( |
| ) |
|
Should be invoked when the loop begins before other code.
◆ loopEnd()
void fm.liveswitch.ManagedThread.loopEnd |
( |
| ) |
|
Should be invoked when the loop ends after other code.
◆ sleep()
static void fm.liveswitch.ManagedThread.sleep |
( |
int |
millisecondsTimeout | ) |
|
|
static |
Sleeps the current thread for a specified period of time.
- Parameters
-
millisecondsTimeout | The length of time to sleep in milliseconds. |
◆ start()
void fm.liveswitch.ManagedThread.start |
( |
| ) |
|