Commit eab49583 authored by Dominik Charousset's avatar Dominik Charousset

Fix weak-vtable warning

parent 88a164c3
......@@ -101,6 +101,7 @@ set (LIBCAF_CORE_SRCS
src/term.cpp
src/test_actor_clock.cpp
src/test_coordinator.cpp
src/thread_hook.cpp
src/thread_safe_actor_clock.cpp
src/tick_emitter.cpp
src/timestamp.cpp
......
......@@ -18,14 +18,14 @@
#pragma once
#include "caf/fwd.hpp"
namespace caf {
/// Interface to define thread hooks.
class thread_hook {
public:
virtual ~thread_hook() {
// nop
}
virtual ~thread_hook();
/// Called by the actor system once before starting any threads.
virtual void init(actor_system&) = 0;
......
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright 2011-2018 Dominik Charousset *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/thread_hook.hpp"
namespace caf {
thread_hook::~thread_hook() {
// nop
}
} // namespace caf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment