mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
freertos: Revert critical section macro
This commit reverts the previous "taskENTER_CRTIICAL();" so that the argument is now provided for better code readability. The names of the spinlocks have also been updated.
This commit is contained in:
@@ -3391,8 +3391,8 @@ void vTaskPlaceOnEventListRestricted( List_t * const pxEventList,
|
||||
* THIS FUNCTION MUST NOT BE USED FROM APPLICATION CODE. IT IS AN
|
||||
* INTERFACE WHICH IS FOR THE EXCLUSIVE USE OF THE SCHEDULER.
|
||||
*
|
||||
* This function is a wrapper to take the "xTaskQueueMutex" spinlock of tasks.c.
|
||||
* This lock is taken whenver any of the task lists or event lists are
|
||||
* This function is a wrapper to take the "xKernelLock" spinlock of tasks.c.
|
||||
* This lock is taken whenver any of the kernel's data structures are
|
||||
* accessed/modified, such as when adding/removing tasks to/from the delayed
|
||||
* task list or various event lists.
|
||||
*
|
||||
@@ -3401,8 +3401,8 @@ void vTaskPlaceOnEventListRestricted( List_t * const pxEventList,
|
||||
* of delegating the entire responsibility to one of vTask...EventList()
|
||||
* functions).
|
||||
*/
|
||||
void vTaskTakeEventListLock( void );
|
||||
void vTaskReleaseEventListLock( void );
|
||||
void vTaskTakeKernelLock( void );
|
||||
void vTaskReleaseKernelLock( void );
|
||||
#endif // ESP_PLATFORM
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user