Skip to content

How to use the CoreMutex class? #1311

Answered by earlephilhower
joba-1 asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting observations! CoreMutex could be used by and app, but it's so simple I didn't document it or try it outside of the core.

The u_int8_t is actually just a silly typo on my part, and was of course meant to be a uint8_t just like the constructor option parameter.

The __isFreeRTOS is just a C/C++ linkage issue where I seem to have declared it in Arduino.h inside an extern "C" block, but in the FreeRTOS shim layer header w/o the extern "C". The actual variable is C++ linkage in main.cpp so Arduino.h needs to move it around.

Changes in #1312 should clear these two up.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joba-1
Comment options

@joba-1
Comment options

@earlephilhower
Comment options

Answer selected by joba-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants