Skip to content

Commit 0457587

Browse files
committed
Minor update from ESP8266 version of Schedule library.
1 parent f07c969 commit 0457587

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libraries/Schedule/src/Schedule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void run_scheduled_functions(schedule_e policy)
149149
static bool fence = false;
150150
{
151151
#ifdef ESP8266
152-
InterruptLock lockAllInterruptsInThisScope;
152+
esp8266::InterruptLock lockAllInterruptsInThisScope;
153153
#else
154154
std::lock_guard<std::mutex> lock(schedulerMutex);
155155
#endif

libraries/Schedule/src/circular_queue/circular_queue.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
316316
bool capacity(const size_t cap)
317317
{
318318
#ifdef ESP8266
319-
InterruptLock lock;
319+
esp8266::InterruptLock lock;
320320
#else
321321
std::lock_guard<std::mutex> lock(m_pushMtx);
322322
#endif
@@ -326,7 +326,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
326326
bool IRAM_ATTR push(T&& val)
327327
{
328328
#ifdef ESP8266
329-
InterruptLock lock;
329+
esp8266::InterruptLock lock;
330330
#else
331331
std::lock_guard<std::mutex> lock(m_pushMtx);
332332
#endif
@@ -342,7 +342,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
342342
bool IRAM_ATTR push(const T& val)
343343
{
344344
#ifdef ESP8266
345-
InterruptLock lock;
345+
esp8266::InterruptLock lock;
346346
#else
347347
std::lock_guard<std::mutex> lock(m_pushMtx);
348348
#endif
@@ -359,7 +359,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
359359
size_t push_n(const T* buffer, size_t size)
360360
{
361361
#ifdef ESP8266
362-
InterruptLock lock;
362+
esp8266::InterruptLock lock;
363363
#else
364364
std::lock_guard<std::mutex> lock(m_pushMtx);
365365
#endif
@@ -375,7 +375,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
375375
T& pop_requeue()
376376
{
377377
#ifdef ESP8266
378-
InterruptLock lock;
378+
esp8266::InterruptLock lock;
379379
#else
380380
std::lock_guard<std::mutex> lock(m_pushMtx);
381381
#endif
@@ -408,7 +408,7 @@ template< typename T > class circular_queue_mp : protected circular_queue<T>
408408
if (fun(val))
409409
{
410410
#ifdef ESP8266
411-
InterruptLock lock;
411+
esp8266::InterruptLock lock;
412412
#else
413413
std::lock_guard<std::mutex> lock(m_pushMtx);
414414
#endif

0 commit comments

Comments
 (0)