====== OSA : OS_EnterCriticalSection ====== **OS_EnterCriticalSection ()**\\ === === {{osa:ref:attr_call_task.png|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:services:alphabetical|Alphabetical]] * [[en:osa:ref:services:brieflist|All services]] ~~UP~~