Skip to content

Commit

Permalink
Adding macro 'SINK_NON_BLOCKING' to instantiate non-blocking-sink. (#49)
Browse files Browse the repository at this point in the history
Blocking sinks are instantiated via macro 'SINK'
  • Loading branch information
aentinger committed Nov 5, 2021
1 parent a1cc560 commit 9ce7a4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Arduino_Threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ public: \
#define GET_SINK_MACRO(_1,_2,_3,NAME,...) NAME
#define SINK(...) GET_SINK_MACRO(__VA_ARGS__, SINK_3_ARG, SINK_2_ARG)(__VA_ARGS__)

#define SINK_NON_BLOCKING(name, type) \
public: \
SinkNonBlocking<type> name{}; \
private:

#define SHARED(name, type) \
Shared<type> name;

Expand Down

0 comments on commit 9ce7a4d

Please sign in to comment.