Skip to content

Commit 36cc1ea

Browse files
committed
Add locking around _messageQueue and _controlQueue in AsyncWebSocketClient
Based on a combination of commits 344d31c and 9b98550 of of dumbfixes branch of 0xFEEDC0DE64 fork of ESPAsyncWebServer. This patch additionally introduces a PolymorphMessageContainer class, containing either a AsyncWebSocketBasicMessage or an AsyncWebSocketMultiMessage, and intented to be contained inside a std::deque (instead of a std::queue as on the original commits, as done in a previous commit). This patch therefore eliminates one more use of a LinkedList<T>. Some code formatting done on the side too.
1 parent 12b5f49 commit 36cc1ea

File tree

3 files changed

+306
-169
lines changed

3 files changed

+306
-169
lines changed

0 commit comments

Comments
 (0)