MCPcopy Create free account
hub / github.com/davisking/dlib / zero_val

Method zero_val

dlib/test/thread_pool.cpp:411–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 void accum1(long a) { val += a; }
410 void accum2(long a, long b) { val += a + b; }
411 void zero_val() { dlib::sleep(20); val = 0; }
412
413
414 void set_struct_to_zero (some_struct& a) { a.val = 0; }

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected