I have a while loop that keeps looking for a flag to be set.. i.e.
//wait for flag to be set
while(!myClass->isFlagSet())
{
...........
}
//now that the flag is set, keep going...
But the problem is that during the while loop, nothing else is running, and the flag never gets set high.
This is in vxworks (for powerpc) (c++).
How can I get that flag to be updated during the while loop? Is there a better way to do that than with a while loop?
//wait for flag to be set
while(!myClass->isFlagSet())
{
...........
}
//now that the flag is set, keep going...
But the problem is that during the while loop, nothing else is running, and the flag never gets set high.
This is in vxworks (for powerpc) (c++).
How can I get that flag to be updated during the while loop? Is there a better way to do that than with a while loop?