#include <scroom/async-deleter.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()
| BOOST_AUTO_TEST_CASE |
( |
deleter_deletes_asynchronously |
| ) |
|
66 boost::shared_ptr<A> a = boost::shared_ptr<A>(
new A(&barrier1, &destroyed),
AsyncDeleter<A>());
◆ long_timeout()
| static const millisec long_timeout |
( |
2000 |
| ) |
|
|
static |
◆ short_timeout()
| static const millisec short_timeout |
( |
250 |
| ) |
|
|
static |
static const millisec short_timeout(250)
boost::function< void()> clear(Semaphore *s)
Definition: helpers.cc:29
boost::function< void()> destroy(boost::shared_ptr< void > p)
Definition: helpers.cc:31
Definition: async-deleter.hh:41
void P()
Definition: semaphore.hh:38
ThreadPool::Ptr CpuBound()
Definition: threadpoolimpl.cc:452
Definition: semaphore.hh:15
static const millisec long_timeout(2000)
boost::function< void()> pass(Semaphore *s)
Definition: helpers.cc:27
Definition: boost-bind.cc:21
void V()
Definition: semaphore.hh:77