Scroom 0.14-49-gb7ae7a6d
Loading...
Searching...
No Matches
helpers.hh
Go to the documentation of this file.
1/*
2 * Scroom - Generic viewer for 2D data
3 * Copyright (C) 2009-2026 Kees-Jan Dijkzeul
4 *
5 * SPDX-License-Identifier: LGPL-2.1
6 */
7
8#pragma once
9
10#include <memory>
11
12#include <boost/function.hpp>
13
14#include <scroom/semaphore.hh>
15#include <scroom/threadpool.hh>
16
17using namespace Scroom;
18
19boost::function<void()> pass(Semaphore* s);
20boost::function<void()> clear(Semaphore* s);
21boost::function<void()> destroy(std::shared_ptr<void>& p);
22
23template <typename T>
24boost::function<void()> destroy(std::shared_ptr<T>& p)
25{
26 std::shared_ptr<void> pv = std::move(p);
27 return destroy(pv);
28}
Definition semaphore.hh:16
PresentationInterfaceStub::Ptr const p
Definition determine-size-test.cc:172
() void(clear(nullptr)+(5 *clear(nullptr)) *5)
boost::function< void()> destroy(std::shared_ptr< void > &p)
Definition helpers.cc:33
boost::function< void()> pass(Semaphore *s)
Definition helpers.cc:23
Definition blockallocator.hh:18
observers clear()
BitmapSurface::Ptr const s
Definition transformpresentation_test.cc:70