RTX51-Tiny: os_wait2(..) return question

If I call os_wait2(..) as listed in the example below, and if subsequently another task signals MyTask() AND it times out, what will the return value be? The manual states the return value will be a manifest constant identifying the event that restarted the task, but its not clear whether this is only one of the constants or can be a combination thereof.

void MyTask( void ) _task_ 0
{
    ret_val = os_wait2( K_SIG | K_TMO, 25 );

    // what will ret_val be if the task both
    // timed out AND was signaled ???
}

Parents
  • For a really detailed question like this, you might want to email tech support. Officially, this forum is for users and not Keil's means of tech support.

    (Unless someone in the general user base happens to already have asked that question, it's not likely that they'll know answers about implementation details that aren't in the manual or easily discoverable by experiment.)

Reply
  • For a really detailed question like this, you might want to email tech support. Officially, this forum is for users and not Keil's means of tech support.

    (Unless someone in the general user base happens to already have asked that question, it's not likely that they'll know answers about implementation details that aren't in the manual or easily discoverable by experiment.)

Children
More questions in this forum