MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / hasSpace

Method hasSpace

src/include/function/gds/gds_object_manager.h:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 void revertLast() { nextPosToWrite.fetch_sub(1, std::memory_order_relaxed); }
25
26 bool hasSpace() const {
27 return nextPosToWrite.load(std::memory_order_relaxed) <
28 maxElements.load(std::memory_order_relaxed);
29 }
30
31private:
32 T* getData() const { return reinterpret_cast<T*>(block->getData()); }

Callers 5

edgeComputeMethod · 0.80
edgeComputeMethod · 0.80
edgeComputeMethod · 0.80
edgeComputeMethod · 0.80
edgeComputeMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected