mirror of https://github.com/davisking/dlib.git
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:
parent
4d119367ef
commit
55784ffee6
|
@ -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 ()
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue