|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.cldc.jna.TaskExecutor
public class TaskExecutor
A TaskExecutor is a native thread that can be used to run native functions.
| Field Summary | |
|---|---|
static int |
MAX_NUM_CACHABLE_TASK_EXECUTORS
|
static int |
TASK_PRIORITY_HI
|
static int |
TASK_PRIORITY_LOW
|
static int |
TASK_PRIORITY_MED
|
protected Address |
te
|
| Constructor Summary | |
|---|---|
TaskExecutor(String name)
Create a natve thread with the given name, default priority and default stack size. |
|
TaskExecutor(String name,
int priority,
int stacksize)
Create a natve thread with the given name, priority and stack size. |
|
| Method Summary | |
|---|---|
void |
cancelTaskExecutor()
Tell TaskExecutor to stop running new NativeTasks. |
int |
deleteTaskExecutor()
Delete the native resources behind this TaskExecutor. |
void |
stopTaskExecutor()
Cancel the TaskExecutor and delete when TaskExecutor done. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TASK_PRIORITY_HI
public static final int TASK_PRIORITY_MED
public static final int TASK_PRIORITY_LOW
public static final int MAX_NUM_CACHABLE_TASK_EXECUTORS
protected Address te
| Constructor Detail |
|---|
public TaskExecutor(String name,
int priority,
int stacksize)
name - name may be passed on to the native threadpriority - stacksize - zero is defaultpublic TaskExecutor(String name)
name - name may be passed on to the native thread| Method Detail |
|---|
public void cancelTaskExecutor()
public int deleteTaskExecutor()
public void stopTaskExecutor()
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||