MCPcopy Create free account
hub / github.com/catboost/catboost / TestAllocPromise

Function TestAllocPromise

library/cpp/threading/future/perf/main.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template <typename T>
10void TestAllocPromise(const NBench::NCpu::TParams& iface) {
11 for (const auto it : xrange(iface.Iterations())) {
12 Y_UNUSED(it);
13 Y_DO_NOT_OPTIMIZE_AWAY(NewPromise<T>());
14 }
15}
16
17template <typename T>
18TPromise<T> SetPromise(T value) {

Callers

nothing calls this directly

Calls 3

xrangeFunction · 0.85
Y_UNUSEDFunction · 0.85
IterationsMethod · 0.45

Tested by

no test coverage detected