Available Languages?:

OSA : OS_Bsem_Set

OS_Bsem_Set (bsem)
OS_Bsem_Set_I (bsem)

(Same as OS_Bsem_Signal)

Signal binary semaphore.

Call allowed:

Everywhere

Parameters:

bsem Binary semaphore's ID. Number of binary semaphores is set by OS_BSEMS constant in OSAcfg.h

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Bsem_Set(3);  // Set binary semaphore #3
        /*...*/
    }
}

Old style name

OS_SetBSem

See also

 
en/osa/ref/allservices/os_bsem_set.txt · Last modified: 07.10.2010 13:56 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki