Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ thread
Method
thread
examples/threaded_object_ex.cpp:43–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
41
private:
42
43
void thread()
44
{
45
// This is our thread. It will loop until it is told that it should terminate.
46
while (should_stop() == false)
47
{
48
cout <<
"hurray threads!"
<< endl;
49
dlib::sleep(500);
50
}
51
}
52
};
53
54
int main()
Callers
nothing calls this directly
Calls
1
sleep
Function · 0.50
Tested by
no test coverage detected