libmoost
/home/mhx/git/github/libmoost/include/moost/thread/job_batch.hpp
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00030 #ifndef MOOST_THREAD_JOB_BATCH_HPP
00031 #define MOOST_THREAD_JOB_BATCH_HPP
00032 
00033 #include <boost/function.hpp>
00034 
00035 namespace moost { namespace thread {
00036 
00044 class job_batch
00045 {
00046 public:
00047    virtual ~job_batch() {}
00048 
00056    typedef boost::function0<void> job_t;
00057 
00070    virtual void add(job_t job) = 0;
00071 };
00072 
00073 }}
00074 
00075 #endif