firmware/src/concurrency/OSThread.h

18 lines
236 B
C
Raw Normal View History

#pragma once
2020-09-04 22:03:22 +00:00
#include "FreeRtosThread.h"
#include "PosixThread.h"
2020-09-04 22:03:22 +00:00
namespace concurrency
{
2020-07-06 19:53:10 +00:00
2020-09-04 22:03:22 +00:00
#ifdef HAS_FREE_RTOS
typedef FreeRtosThread OSThread;
2020-09-04 22:03:22 +00:00
#endif
2020-09-04 22:03:22 +00:00
#ifdef __unix__
typedef PosixThread OSThread;
2020-09-04 22:03:22 +00:00
#endif
2020-07-06 19:53:10 +00:00
} // namespace concurrency