This documenta- tion describes the current state of development.
Prokee Modules:
GUI Elements:
GUI Interactions:
GUI Layouts:
Games/Demos:
Third Party Libraries:
Inheritance:
Constructors:
Methods:AbsThread *createLoopThread(int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem))AbsThread *createLoopThread2(unsigned int tid,int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem))AbsThread *createThreadEx(int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem),void(*main_func)(void *args),void *_args)int sendMessage(AbsThread *tr,uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *msgData)int broadcastMessage(AbsThread *senderThread,uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *msgData)ThreadMan()
AbsThreadMan *AbsThreadManInterface::createThreadMan()
ThreadManWrapper()
AbsThreadManInterface::createThreadMan creates a new instance of class ThreadMan.
ThreadMan.AbsThread *getThreadById(unsigned int tid)
| Type | Name | Direction | Description |
| tid | A unique ID of the thread. |
unsigned int getThreadId(AbsThread *tr)
| Type | Name | Direction | Description |
| tr | [IN] | Pointer to a AbsThread object. |
unsigned int countRunningThreads()
void printInfo()
AbsThread *createEmptyThread()
AbsThread *createThread(void(*main_func)(void *args),void *_args)
| Type | Name | Direction | Description | ||||
| void(*main_func) ( void *args ) with typedef
| [IN] |
The thread-main function.
Parameter
args: Pointer to the function arguments. | |||||
| _args | Pointer to arguments for the call of main_func. | ||||||
AbsThread *createThread2(unsigned int tid,void(*main_func)(void *args),void *_args)
| Type | Name | Direction | Description | ||||
| tid | A unique ID of the thread. | ||||||
| void(*main_func) ( void *args ) with typedef
| [IN] |
The thread-main function.
Parameter
args: Pointer to the function arguments. | |||||
| _args | Pointer to arguments for the call of main_func. | ||||||
AbsThread *createLoopThread(int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem))
| Type | Name | Direction | Description | ||||
| int32_t(*callback) ( AbsThread *tread, AbsMsgItem *msgItem ) with typedef
| [IN] |
The thread-callback function.
Parameter
tread: Pointer to the thread wrapper class the message was sent to. msgItem: Pointer to a message item.
Return value
Return value of the callback function.
| |||||
AbsThread *createLoopThread2(unsigned int tid,int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem))
| Type | Name | Direction | Description | ||||
| tid | A unique ID of the thread. | ||||||
| int32_t(*callback) ( AbsThread *tread, AbsMsgItem *msgItem ) with typedef
| [IN] |
The thread-callback function.
Parameter
tread: Pointer to the thread wrapper class the message was sent to. msgItem: Pointer to a message item.
Return value
Return value of the callback function.
| |||||
AbsThread *createThreadEx(int32_t(*callback)(AbsThread *tread,AbsMsgItem *msgItem),void(*main_func)(void *args),void *_args)
| Type | Name | Direction | Description | ||||
| int32_t(*callback) ( AbsThread *tread, AbsMsgItem *msgItem ) with typedef
| [IN] |
The thread-callback function.
Parameter
tread: Pointer to the thread wrapper class the message was sent to. msgItem: Pointer to a message item.
Return value
Return value of the callback function.
| |||||
| void(*main_func) ( void *args ) with typedef
| [IN] |
The thread-main function.
Parameter
args: Pointer to the function arguments. | |||||
| _args | Pointer to arguments for the call of main_func. | ||||||
void setMasterThread(AbsThread *tr)
| Type | Name | Direction | Description |
| tr | [IN] | Pointer to a AbsThread object. |
AbsThread *getMasterThread()
int sendMessage(AbsThread *tr,uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *msgData)
| Type | Name | Direction | Description |
| tr | [IN] | Pointer to a AbsThread object. | |
| msgID | The ID of the type of message. | ||
| msgParam | The Parameter of message. | ||
| msgFlags | The Flags of message. | ||
| msgData | The data sent with the message. |
int broadcastMessage(AbsThread *senderThread,uint64_t msgID,uint64_t msgParam,uint64_t msgFlags,void *msgData)
| Type | Name | Direction | Description |
| senderThread | [IN] | Pointer to a AbsThread object. | |
| msgID | The ID of the type of message. | ||
| msgParam | The Parameter of message. | ||
| msgFlags | The Flags of message. | ||
| msgData | The data sent with the message. |
int broadcastShutdownMessage()