threads: begin change to cooperative threading

This commit is contained in:
Kevin Hester
2020-10-08 13:32:34 +08:00
parent 1b6e8e36d3
commit bed7d8a619
3 changed files with 5 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
#pragma once
#include "FreeRtosThread.h"
#include "PosixThread.h"
namespace concurrency
{
#ifdef HAS_FREE_RTOS
typedef FreeRtosThread OSThread;
#endif
#ifdef __unix__
typedef PosixThread OSThread;
#endif
} // namespace concurrency