Component index
Section index | Component uithread |
Search |
Type | Function |
Summary | Execute several tasks in independant UI threads |
Description | UI threads are extensivly used since each dialog is modal. UI threads are synchronous. At any given time, at most one thread is alive and all the other are in two possible states: Either starting or listening (in DIALOG::edit() generally). |
![]() ![]() | void thread1 () | |
![]() ![]() | void thread2 () | |
![]() ![]() | void thread3 () | |
![]() ![]() | void thread4 () | |
![]() ![]() | void thread5 () |
Normally, uithread waits until all threads have ended. Any thread may call dontwait() to change this behavior. This is generally used by a dialog poping a non modal sub-dialog. The uithread component is used to pass information (using glocal variables) to the threads. The threads grab a copy of the information and tell the component to end.