|
Scroom 0.14-49-gb7ae7a6d
|
#include <iostream>#include <memory>#include <boost/date_time/posix_time/posix_time.hpp>#include <boost/thread.hpp>#include <gtest/gtest.h>#include <scroom/function-additor.hh>#include <scroom/semaphore.hh>#include "helpers.hh"
Functions | |
| const millisec | short_timeout (250) |
| const millisec | long_timeout (2000) |
| pool | schedule (clear(&a)+pass(&b)) |
| pool | schedule (clear(&c)) |
| a | P () |
| boost::thread | t (pass(&guard)+destroy(pool)) |
| pool | reset () |
| guard | V () |
| EXPECT_TRUE (t.timed_join(long_timeout)) | |
| ASSERT_TRUE (boost::thread::id()==t.get_id()) | |
| EXPECT_FALSE (c.P(long_timeout)) | |
| EXPECT_TRUE (c.P(long_timeout)) | |
Variables | |
| Semaphore | guard (0) |
| Semaphore | a (0) |
| Semaphore | b (0) |
| Semaphore | c (0) |
| ASSERT_TRUE | ( | boost::thread::id() | = =t.get_id() | ) |
| EXPECT_FALSE | ( | c. | Plong_timeout | ) |
| EXPECT_TRUE | ( | c. | Plong_timeout | ) |
| EXPECT_TRUE | ( | t. | timed_joinlong_timeout | ) |
| const millisec long_timeout | ( | 2000 | ) |
| a P | ( | ) |
| pool reset | ( | ) |
| const millisec short_timeout | ( | 250 | ) |
| guard V | ( | ) |
| Semaphore a(0) | ( | 0 | ) |
| Semaphore b(0) | ( | 0 | ) |
| Semaphore c | ( | 0 | ) |
Referenced by Scroom::ColormapImpl::ColormapProvider::ColormapProvider(), Scroom::ColormapImpl::Colormaps::Colormaps(), Detail::computeC(), Scroom::Utils::anonymous_namespace{tweak-view.cc}::corner_getter(), Scroom::ColormapImpl::ColormapProvider::create(), Scroom::Utils::TweakPositionTextBox::display(), Operations8bpp::draw(), drawRectangle(), drawRectangleContour(), CommonOperations::drawState(), Scroom::Pnm::AsciiSource1bpp::fillTiles(), Scroom::Utils::anonymous_namespace{tweak-view.cc}::find_closest_corner(), Scroom::Utils::anonymous_namespace{tweak-view.cc}::find_opposed_corner(), for(), Scroom::Utils::make_point(), Scroom::ColormapImpl::ColormapProvider::on_colormap_selected(), Scroom::Detail::ThreadPool::FunctionMultiplier::operator()(), TransparentOverlayViewInfo::redraw(), Operations::reduce(), OperationsColormapped::reduce(), Colormap::setAlpha(), MonochromeColormapHelper::setMonochromeColor(), TransformPresentation::setMonochromeColor(), anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation::setMonochromeColor(), TransparentOverlayPresentation::setOptimalColor(), and anonymous_namespace{transparentoverlayviewinfo.cc}::setToggleButtonColor().
| Semaphore guard | ( | 0 | ) |