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

Method add

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

Source from the content-addressed store, hash-verified

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; }
420

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected