Skip navigation.
Home
The QNX Community Portal

View topic - Application hangs issue in QNX6

Application hangs issue in QNX6

Isn't the name clear?

Application hangs issue in QNX6

Postby hello » Thu Mar 21, 2013 3:39 pm

Hi all,

I have an application with 3 threads which updates the GUI in parallel. In some cases, 3 threads will try to update the GUI at the same time.
Before each GUI update, PtEnter() and PtLeave() is used. Is there any possiblity of application hang in such a situation ? Please help.

PtEnter()/PtLeave() code snippet used

int flags = PtEnter(0);
if ((flags >= 0) || (flags == -EDEADLK))
{
some GUI updates
if (flags >= 0)
{
PtLeave(flags);
}
}

Regards,
hello
hello
Senior Member
 
Posts: 101
Joined: Tue May 08, 2012 1:09 pm

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests