Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
eab49583
Commit
eab49583
authored
Apr 11, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix weak-vtable warning
parent
88a164c3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
3 deletions
+32
-3
libcaf_core/CMakeLists.txt
libcaf_core/CMakeLists.txt
+1
-0
libcaf_core/caf/thread_hook.hpp
libcaf_core/caf/thread_hook.hpp
+3
-3
libcaf_core/src/thread_hook.cpp
libcaf_core/src/thread_hook.cpp
+28
-0
No files found.
libcaf_core/CMakeLists.txt
View file @
eab49583
...
...
@@ -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
...
...
libcaf_core/caf/thread_hook.hpp
View file @
eab49583
...
...
@@ -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
;
...
...
libcaf_core/src/thread_hook.cpp
0 → 100644
View file @
eab49583
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment