title: How to connect C++ system calls to freertos
body: <p>I want to write a multi-threading program for microcontroller with free-rtos. but I don't want to use non-standard free-rtos functions, instead, I want to use the native c++  library to run parallel and async tasks. but I don't know how to write an adapter for connecting c++ system calls for thread creation to free-rtos functions.</p>
  
  <p>mcu: arm cortex m4 stm32f407</p>
  
  <p>c++ version: 17</p>