Remove Activ libs and includes
This commit is contained in:
1 parent
28ed30c944
commit
4b718994be
10967 files changed
-2306716
No files matched your search
@@ -1,51 +0,0 @@
|
||||
// Distributed under the Boost Software License, Version 1.0. (See
|
||||
// accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
// (C) Copyright 2009-2012 Anthony Williams
|
||||
// (C) Copyright 2012 Vicente J. Botet Escriba
|
||||
|
||||
// Based on the Anthony's idea of thread_joiner in CCiA
|
||||
|
||||
#ifndef ACTIV_BOOST_THREAD_THREAD_GUARD_HPP
|
||||
#define ACTIV_BOOST_THREAD_THREAD_GUARD_HPP
|
||||
|
||||
#include <ActivBoost/thread/detail/delete.hpp>
|
||||
#include <ActivBoost/thread/detail/move.hpp>
|
||||
#include <ActivBoost/thread/thread_functors.hpp>
|
||||
#include <ActivBoost/thread/detail/thread_interruption.hpp>
|
||||
|
||||
#include <ActivBoost/config/abi_prefix.hpp>
|
||||
|
||||
namespace Boost
|
||||
{
|
||||
|
||||
/**
|
||||
* Non-copyable RAII scoped thread guard joiner which join the thread if joinable when destroyed.
|
||||
*/
|
||||
template <class CallableThread = join_if_joinable, class Thread=::Boost::thread>
|
||||
class thread_guard
|
||||
{
|
||||
Thread& t_;
|
||||
public:
|
||||
ACTIV_BOOST_THREAD_NO_COPYABLE( thread_guard)
|
||||
|
||||
explicit thread_guard(Thread& t) :
|
||||
t_(t)
|
||||
{
|
||||
}
|
||||
~thread_guard()
|
||||
{
|
||||
#if defined ACTIV_BOOST_THREAD_PROVIDES_INTERRUPTIONS
|
||||
// exceptions from a destructor call std::terminate
|
||||
Boost::this_thread::disable_interruption do_not_disturb;
|
||||
#endif
|
||||
CallableThread on_destructor;
|
||||
|
||||
on_destructor(t_);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
#include <ActivBoost/config/abi_suffix.hpp>
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user