mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-04 21:03:07 +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>
|
#include <assert.h>
|
||||||
|
|
||||||
namespace concurrency
|
namespace concurrency
|
||||||
|
@ -7,11 +7,11 @@ namespace concurrency
|
|||||||
{
|
{
|
||||||
|
|
||||||
#ifdef HAS_FREE_RTOS
|
#ifdef HAS_FREE_RTOS
|
||||||
typedef FreeRtosThread Thread;
|
typedef FreeRtosThread OSThread;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
typedef PosixThread Thread;
|
typedef PosixThread OSThread;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace concurrency
|
} // namespace concurrency
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Thread.h"
|
#include "OSThread.h"
|
||||||
|
|
||||||
namespace concurrency {
|
namespace concurrency {
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ namespace concurrency {
|
|||||||
*
|
*
|
||||||
* @link https://www.freertos.org/RTOS_Task_Notification_As_Mailbox.html
|
* @link https://www.freertos.org/RTOS_Task_Notification_As_Mailbox.html
|
||||||
*/
|
*/
|
||||||
class WorkerThread : public Thread
|
class WorkerThread : public OSThread
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user