Skip to content

Commit 3ee47b0

Browse files
committed
An upgraded 'Shared' macro allows a definition of the internal queue size on a per-object-basis.
This fixes #61.
1 parent 669f272 commit 3ee47b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Arduino_Threads.h

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public: \
8585
#define SHARED(name, type) \
8686
Shared<type> name;
8787

88+
#define SHARED(name, type, size) \
89+
Shared<type, size> name;
90+
8891
#define ARDUINO_THREADS_CONCAT_(x,y) x##y
8992
#define ARDUINO_THREADS_CONCAT(x,y) ARDUINO_THREADS_CONCAT_(x,y)
9093

0 commit comments

Comments
 (0)