#include <scroom/threadpool.hh>
#include <iostream>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/thread.hpp>
#include <scroom/function-additor.hh>
#include <scroom/semaphore.hh>
#include "helpers.hh"
◆ BOOST_AUTO_TEST_CASE() [1/2]
| BOOST_AUTO_TEST_CASE |
( |
destroy_threadpool_with_nonempty_queue |
| ) |
|
45 pool->schedule(
clear(&c));
◆ BOOST_AUTO_TEST_CASE() [2/2]
| BOOST_AUTO_TEST_CASE |
( |
destroy_threadpool_with_nonempty_queue_with_completeAllJobsBeforeDestruction_true |
| ) |
|
72 pool->schedule(
clear(&c));
◆ long_timeout()
| const millisec long_timeout |
( |
2000 |
| ) |
|
◆ short_timeout()
| const millisec short_timeout |
( |
250 |
| ) |
|
boost::shared_ptr< ThreadPool > Ptr
Definition: threadpool.hh:169
boost::function< void()> clear(Semaphore *s)
Definition: helpers.cc:29
boost::function< void()> destroy(boost::shared_ptr< void > p)
Definition: helpers.cc:31
const millisec long_timeout(2000)
Definition: semaphore.hh:15
static ThreadPool::Ptr create(bool completeAllJobsBeforeDestruction=false)
Definition: threadpoolimpl.cc:228
BOOST_REQUIRE(originalColormap)
boost::function< void()> pass(Semaphore *s)
Definition: helpers.cc:27
static void b(const B::Ptr &)
Definition: gtkhelper-tests.cc:32