mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-23 15:01:56 -04:00
IotTaskPool_CreateSystemTaskPool() calls synchronisation primitives, so cannot be called before the scheduler starts. Add a configASSERT() to ensure the scheduler is running when it executes. IotTaskPool_CreateSystemTaskPool() can conceivably be called from multiple different libraries that depend on the thread pool. In this version _IotSystemTaskPool.running can be used to check the system task pool has not already been created. If the task pool has been created simply return from IotTaskPool_CreateSystemTaskPool() instead of re-creating it (which would leak memory and leave orphaned tasks). Call taskENTER_CRITICAL() and taskEXIT_CRITICAL() directly in place of mapping them to TASKPOOL_ENTER_CRITICAL() and TASKPOOL_EXIT_CRITICAL() in the same file. Rename _timerThread() _timerCallback(), as it is a callback function and not a thread. Remove the unused flags parameter from _scheduleInternal().
160 lines
5 KiB
XML
160 lines
5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<projectDescription>
|
|
<name>RTOSDemo</name>
|
|
<comment></comment>
|
|
<projects>
|
|
</projects>
|
|
<buildSpec>
|
|
<buildCommand>
|
|
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
<triggers>clean,full,incremental,</triggers>
|
|
<arguments>
|
|
</arguments>
|
|
</buildCommand>
|
|
<buildCommand>
|
|
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
<triggers>full,incremental,</triggers>
|
|
<arguments>
|
|
</arguments>
|
|
</buildCommand>
|
|
</buildSpec>
|
|
<natures>
|
|
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
</natures>
|
|
<linkedResources>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/abstractions</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/event_groups.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/event_groups.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/include</name>
|
|
<type>2</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/include</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/list.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/list.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/portable</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/queue.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/queue.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/readme.txt</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/readme.txt</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/stream_buffer.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/stream_buffer.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/tasks.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/tasks.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/timers.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/timers.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/abstractions/platform</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk/standard</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/portable/MSVC-MingW</name>
|
|
<type>2</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/portable/MSVC-MingW</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/portable/MemMang</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/abstractions/platform/freertos</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/abstractions/platform/include</name>
|
|
<type>2</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Source/FreeRTOS-Plus-IoT-SDK/abstractions/platform/include</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS_Kernel_Source/portable/MemMang/heap_4.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS/Source/portable/MemMang/heap_4.c</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/abstractions/platform/freertos/include</name>
|
|
<type>2</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Source/FreeRTOS-Plus-IoT-SDK/abstractions/platform/freertos/include</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common/include</name>
|
|
<type>2</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Source/FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common/include</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common/taskpool</name>
|
|
<type>2</type>
|
|
<locationURI>virtual:/virtual</locationURI>
|
|
</link>
|
|
<link>
|
|
<name>FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common/taskpool/iot_taskpool.c</name>
|
|
<type>1</type>
|
|
<locationURI>FREERTOS_ROOT/FreeRTOS-Plus/Source/FreeRTOS-Plus-IoT-SDK/c_sdk/standard/common/taskpool/iot_taskpool.c</locationURI>
|
|
</link>
|
|
</linkedResources>
|
|
<variableList>
|
|
<variable>
|
|
<name>FREERTOS_ROOT</name>
|
|
<value>$%7BPARENT-4-PROJECT_LOC%7D</value>
|
|
</variable>
|
|
</variableList>
|
|
</projectDescription>
|