sforkowany z mirror/meshtastic-firmware
threads: begin change to cooperative threading
rodzic
1b6e8e36d3
commit
bed7d8a619
|
@ -1,4 +1,4 @@
|
|||
#include "Thread.h"
|
||||
#include "BaseThread.h"
|
||||
#include <assert.h>
|
||||
|
||||
namespace concurrency
|
||||
|
|
|
@ -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
|
|
@ -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:
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue