Simplified pipe examples by removing the ::kernel_1a stuff now that it is

no longer required.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404219
This commit is contained in:
Davis King 2011-04-18 14:38:10 +00:00
parent 4d119367ef
commit 55784ffee6
2 changed files with 2 additions and 5 deletions

View File

@ -115,7 +115,7 @@ public:
// There are only two requirements on the type of objects you can use in a
// pipe, first they must have a default constructor and second they must
// be swappable by a global swap().
dlib::pipe<job>::kernel_1a job_pipe;
dlib::pipe<job> job_pipe;
private:
void thread ()

View File

@ -48,9 +48,6 @@ typedef type_safe_union<int, float, std::string> tsu_type;
*/
// And here we have a typedef for the pipe we will be using
typedef dlib::pipe<tsu_type>::kernel_1a pipe_type;
// ----------------------------------------------------------------------------------------
class pipe_example : private threaded_object
@ -81,7 +78,7 @@ public:
}
// Here we declare our pipe object. It will contain our messages.
pipe_type message_pipe;
dlib::pipe<tsu_type> message_pipe;
private: