Command disabled: backlink
 
Available Languages?:

OSA : OS_EnterCriticalSection

OS_EnterCriticalSection ()

Allowed only in task

Enter critical section. Current values of GIEx are stored in internal system variable. All interrupts are disabled. All tasks except current will be paused. You can still switch to the scheduler.

Call allowed:

Only in task

Parameters:

None

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_EnterCriticalSection();
        /* make critical operations */
        /*...*/
        OS_LeaveCriticalSection();
        /*...*/
    }
}

See also

 
en/osa/ref/allservices/os_entercriticalsection.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