MCPcopy Create free account
hub / github.com/davisking/dlib / operator()

Method operator()

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

Source from the content-addressed store, hash-verified

35
36 template <typename T, typename U, typename V>
37 void operator()(T a, U b, V& res)
38 {
39 dlib::sleep(20);
40 res = a + b;
41 }
42
43 void set_global_var() { global_var = 9; }
44 void set_global_var_const() const { global_var = 9; }

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected