Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
ESP32Threads.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifdef ESP32
4#include <esp_pthread.h>
5#endif
6
7#include <Settings/NamespaceSettings.hpp>
8
10
12#ifdef ESP32
14 const char *thread_name,
19 cfg.stack_size = stack_size;
20 cfg.prio = priority;
21 cfg.inherit_cfg = inherit_cfg;
22 cfg.thread_name = thread_name;
23 cfg.pin_to_core = pin_to_core;
25 }
26
30 }
31
32 private:
35#else
37 const char *thread_name, int pin_to_core = -1) {
43 }
44#endif
45};
46
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
ScopedThreadConfig(size_t stack_size, size_t priority, bool inherit_cfg, const char *thread_name, int pin_to_core=-1)