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

Method increment

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

Source from the content-addressed store, hash-verified

414 void set_struct_to_zero (some_struct& a) { a.val = 0; }
415 void set_to_zero (int& a) { dlib::sleep(20); a = 0; }
416 void increment (int& a) const { dlib::sleep(20); ++a; }
417 void add (int a, const int& b, int& res) { dlib::sleep(20); res = a + b; }
418 void add1(int& a, int& res) const { res += a; }
419 void add2 (int c, int a, const int& b, int& res) { res = a + b + c; }

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected