mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-04 04:47:25 +00:00
threads: begin change to cooperative threading
This commit is contained in:
parent
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:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user