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

Method set_struct_to_zero

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

Source from the content-addressed store, hash-verified

412
413
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; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected