Forcing application to run other than main thread #245
Answered
by
lc-soft
WhoAteDaCake
asked this question in
Q&A
-
Hello, is it possible to force application to run on a spawned thread? |
Beta Was this translation helpful? Give feedback.
Answered by
lc-soft
Jun 5, 2021
Replies: 1 comment 1 reply
-
Yes, it is. Example: void UIThread(void *arg)
{
LCUI_Main();
}
int main(void)
{
LCUI_Thread tid;
LCUI_Init();
LCUIThread_Create(&tid, UIThread, NULL);
// Do something...
...
LCUI_Quit();
LCUIThread_Join(&tid);
return 0;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
WhoAteDaCake
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is.
Example: