2022-03-14 07:00:59 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
2022-03-31 06:16:19 -04:00
|
|
|
#include "unity_test_utils_memory.h"
|
2022-08-06 02:52:22 -04:00
|
|
|
#include "unity_test_utils_cache.h"
|
2022-03-14 07:00:59 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Delete task ensuring dynamic memory (for stack, tcb etc.) gets freed up immediately
|
|
|
|
*
|
|
|
|
* @param[in] thandle Handle of task to be deleted (should not be NULL or self handle)
|
|
|
|
*/
|
|
|
|
void unity_utils_task_delete(TaskHandle_t thandle);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|