Skip to content

Forcing application to run other than main thread #245

Answered by lc-soft
WhoAteDaCake asked this question in Q&A
Discussion options

You must be logged in to vote

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;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WhoAteDaCake
Comment options

Answer selected by WhoAteDaCake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants