Skip navigation.
Home
The QNX Community Portal

View topic - Application hangs issue in QNX6

Page 1 of 1

Application hangs issue in QNX6

PostPosted: Thu Mar 21, 2013 3:39 pm
by hello
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