MCPcopy Create free account
hub / github.com/bdring/FluidNC / attachWS

Method attachWS

FluidNC/src/WebUI/WebClient.cpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void WebClient::attachWS(bool silent) {
67 _silent = silent;
68 xBufferLock.lock();
69 _buflen = 0;
70 _allocsize = 0;
71 if (_buffer) {
72 free(_buffer);
73 _buffer = nullptr;
74 }
75 done = false;
76 xBufferLock.unlock();
77 }
78
79 // Should be used externally to signify to free any potential resources
80 // Any unread buffer will be cleared after that.

Callers 1

synchronousCommandMethod · 0.80

Calls 2

lockMethod · 0.80
unlockMethod · 0.80

Tested by

no test coverage detected