Hi,
I have a question regarding this function, perhaps for all OSFlagPend variants.
If a task is waiting (blocked) forever (timeout = 0) on a particular bitmask, what would happen if I change the mask while it's waiting. Will OSFlagPendall() continue to wait for the original mask, or will the OS know that the mask was changed?
Thanks,
Victor
OSFlagPendAll question
Re: OSFlagPendAll question
Wont know the mask has changed...
Re: OSFlagPendAll question
Ok. I thought that would be the case...
So, how would be a proper way to change the mask? introduce a timeout?
So, how would be a proper way to change the mask? introduce a timeout?
Re: OSFlagPendAll question
I'd use onf of the 32 possible flags as the change the mask flag....
Always have that one valid in the mask...
Then when you want to change the mask it wakes up changes the mask goes back to sleep...
Always have that one valid in the mask...
Then when you want to change the mask it wakes up changes the mask goes back to sleep...