MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / IncreaseReferences

Method IncreaseReferences

src/Platform/OutputMemory.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void OutputBuffer::IncreaseReferences(size_t refs) noexcept
42{
43 if (refs != 0)
44 {
45 TaskCriticalSectionLocker lock;
46
47 for (OutputBuffer *item = this; item != nullptr; item = item->Next())
48 {
49 item->references += refs;
50 item->isReferenced = true;
51 }
52 }
53}
54
55size_t OutputBuffer::Length() const noexcept
56{

Callers 3

SendGCodeReplyMethod · 0.80
SendGCodeReplyMethod · 0.80
MessageMethod · 0.80

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected