MCPcopy Create free account
hub / github.com/bytedance/bolt / addSources

Method addSources

bolt/exec/tests/ExchangeClientTest.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 static void addSources(ExchangeQueue& queue, int32_t numSources) {
117 {
118 std::lock_guard<std::mutex> l(queue.mutex());
119 for (auto i = 0; i < numSources; ++i) {
120 queue.addSourceLocked();
121 }
122 }
123 queue.noMoreSources();
124 }
125
126 static void enqueue(
127 ExchangeQueue& queue,

Callers

nothing calls this directly

Calls 2

addSourceLockedMethod · 0.80
noMoreSourcesMethod · 0.80

Tested by

no test coverage detected