"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "8f2d13c684e282b258e5fbc73744eda4dc5f3cb6"
Commit ce2a3631 authored by Davis King's avatar Davis King
Browse files

Made an example less confusing.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402465
parent 83963abf
...@@ -20,7 +20,7 @@ namespace dlib ...@@ -20,7 +20,7 @@ namespace dlib
connection* con = a connection from somewhere; connection* con = a connection from somewhere;
{ {
// setup a timer that will call con->shutdown() in 10 seconds // setup a timer that will call con->shutdown() in 10 seconds
timeout t(*con,&connection::shutdown,10000); timeout::kernel_1a t(*con,&connection::shutdown,10000);
// Now call read on the connection. If this call to read() takes // Now call read on the connection. If this call to read() takes
// more than 10 seconds then the t timeout will trigger and shutdown // more than 10 seconds then the t timeout will trigger and shutdown
// the connection. If read completes in less than 10 seconds then // the connection. If read completes in less than 10 seconds then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment