threads: begin change to cooperative threading

1.2-legacy
Kevin Hester 2020-10-08 13:32:34 +08:00
rodzic 1b6e8e36d3
commit bed7d8a619
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
#include "Thread.h"
#include "BaseThread.h"
#include <assert.h>
namespace concurrency

Wyświetl plik

@ -7,11 +7,11 @@ namespace concurrency
{
#ifdef HAS_FREE_RTOS
typedef FreeRtosThread Thread;
typedef FreeRtosThread OSThread;
#endif
#ifdef __unix__
typedef PosixThread Thread;
typedef PosixThread OSThread;
#endif
} // namespace concurrency

Wyświetl plik

@ -1,6 +1,6 @@
#pragma once
#include "Thread.h"
#include "OSThread.h"
namespace concurrency {
@ -10,7 +10,7 @@ namespace concurrency {
*
* @link https://www.freertos.org/RTOS_Task_Notification_As_Mailbox.html
*/
class WorkerThread : public Thread
class WorkerThread : public OSThread
{
protected:
/**