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

Function gset_struct_to_zero

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

Source from the content-addressed store, hash-verified

66 void set_global_var() { global_var = 9; }
67
68 void gset_struct_to_zero (some_struct& a) { a.val = 0; }
69 void gset_to_zero (int& a) { a = 0; }
70 void gincrement (int& a) { ++a; }
71 void gadd (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