MCPcopy Create free account
hub / github.com/RenderKit/embree / progressMonitor

Function progressMonitor

tutorials/common/tutorial/tutorial.cpp:1336–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334 }
1335
1336 extern "C" bool progressMonitor(void* ptr, const double n)
1337 {
1338 size_t olddots = progressDots;
1339 size_t maxdots = progressWidth-2;
1340 size_t newdots = max(olddots,min(size_t(maxdots),size_t(n*double(maxdots))));
1341 if (progressDots.compare_exchange_strong(olddots,newdots))
1342 for (size_t i=olddots; i<newdots; i++) std::cout << "." << std::flush;
1343 return true;
1344 }
1345
1346 extern "C" void progressEnd() {
1347 std::cout << "]" << std::endl;

Callers 9

recurseMethod · 0.85
recurseMethod · 0.85
recurseMethod · 0.85
recurseMethod · 0.85
recurseMethod · 0.85
createPrimRefArrayFunction · 0.85
createPrimRefArrayMBlurFunction · 0.85

Calls 2

maxFunction · 0.50
minFunction · 0.50

Tested by

no test coverage detected