Public Member Functions | |
ThreadHandleQueue () | |
constructor creating object that is executed by thread | |
void | push_back (std::unique_ptr< ObjectInterface > &&obj) |
insert object into threads queue | |
void | run () |
do the work until the queue received an end object | |
Protected Member Functions | |
ThreadHandleQueue (const ThreadHandleQueue &)=delete | |
void | wait () const |
Protected Attributes | |
std::queue< std::unique_ptr< ObjectInterface > > | objQueue_ |
std::mutex | mutex_ |