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

Method thread

examples/pipe_ex.cpp:121–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120private:
121 void thread ()
122 {
123 job j;
124 // Here we loop on jobs from the job_pipe.
125 while (job_pipe.dequeue(j))
126 {
127 // process our job j in some way.
128 dlog << LINFO << "got job " << j.id;
129
130 // sleep for 0.1 seconds
131 dlib::sleep(100);
132 }
133 dlog << LINFO << "thread ending";
134 }
135
136};
137

Callers

nothing calls this directly

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected