default
core
core
core.Thread
allocEventQueue(int size)
- Allocate mailbox event queue/ring buffer.
create(Function entryFunction) : boolean
-
getId() : int
-
getName() : String
-
getPriority() : int
-
getUserData() : Object
-
isRunning() : boolean
-
kill()
-
peekEvent() : Event
- Return next pending event without removing it from the queue.
peekEventById(int id) : Event
- Return next pending event whose id matches "id" without removing it from the queue.
sendEvent(Event ev)
- Post new message in mailbox.
setAffinityMask32(int mask)
-
setName(String name)
-
setPriority(int prio)
-
setUserData(Object o)
-
wait() : int
-
waitEvent(int timeout) : Event
- Return next pending event or wait for new event to arrive.
waitEventById(int id, timeout, ) : Event
- Return next pending event whose id matches "id" or wait for new matching event to arrive. int
THREAD_PRIORITY_ABOVE_NORMAL
-
int
THREAD_PRIORITY_BELOW_NORMAL
-
int
THREAD_PRIORITY_HIGHEST
-
int
THREAD_PRIORITY_IDLE
-
int
THREAD_PRIORITY_LOWEST
-
int
THREAD_PRIORITY_NORMAL
-
int
THREAD_PRIORITY_TIME_CRITICAL
-
A thread may run on a different processor (if available).
Each thread has a mailbox that can be used to receive messages from other threads.
Method allocEventQueue | |||||
Allocate mailbox event queue/ring buffer. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method create | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method getId | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getPriority | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isRunning | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method kill | |||
Signature | |||
|
Method peekEvent | |||||
Return next pending event without removing it from the queue. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method peekEventById | ||||||||||
Return next pending event whose id matches "id" without removing it from the queue. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method sendEvent | |||||
Post new message in mailbox. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This will clone the given Event object and unlink any deletable userdata object from "ev". |
Method setAffinityMask32 | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setPriority | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method wait | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method waitEvent | ||||||||||
Return next pending event or wait for new event to arrive. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Please notice that this method returns null in case the wait() timed out or got interrupted. |
Method waitEventById | |||||||||||||||||||||||||
Return next pending event whose id matches "id" or wait for new matching event to arrive. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Please notice that this method returns null in case the wait() timed out or got interrupted. |
Constant THREAD_PRIORITY_ABOVE_NORMAL (int) | |
Constant THREAD_PRIORITY_BELOW_NORMAL (int) | |
Constant THREAD_PRIORITY_HIGHEST (int) | |
Constant THREAD_PRIORITY_IDLE (int) | |
Constant THREAD_PRIORITY_LOWEST (int) | |
Constant THREAD_PRIORITY_NORMAL (int) | |
Constant THREAD_PRIORITY_TIME_CRITICAL (int) | |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54