# taskENTER\_CRITICAL();

**URL:** <https://forums.freertos.org/t/taskenter-critical/7090>\
**Category:** Kernel\
**Created:** [March 28, 2018, 12:44pm UTC](https://forums.freertos.org/t/taskenter-critical/7090 "2018-03-28T12:44:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 28, 2018, 12:44pm UTC](https://forums.freertos.org/t/taskenter-critical/7090/1 "2018-03-28T12:44:34Z")

</div>

**[michaeln32](https://sourceforge.net/u/michaeln32/)** wrote on [Wednesday, March 28, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/d095bdae/#47d6):

Hi,

Is taskENTER\_CRITICAL() API is nested ?

Is the next code is ok ?

void Task\_A(void)  
{  
taskENTER\_CRITICAL();

taskENTER\_CRITICAL();

//Some code//

taskEXIT\_CRITICAL();

taskEXIT\_CRITICAL();

}

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 1, 2018, 5:41pm UTC](https://forums.freertos.org/t/taskenter-critical/7090/2 "2018-04-01T17:41:52Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Sunday, April 01, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/d095bdae/#2df6):

[https://www.freertos.org/taskENTER\_CRITICAL\_taskEXIT\_CRITICAL.html](https://www.freertos.org/taskENTER_CRITICAL_taskEXIT_CRITICAL.html)
