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
334b84d6
Commit
334b84d6
authored
Sep 07, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fixed' segfault on Mac OS
parent
d21858bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/singleton_manager.cpp
src/singleton_manager.cpp
+4
-2
No files found.
src/singleton_manager.cpp
View file @
334b84d6
#include <atomic>
#include <iostream>
#include "cppa/message.hpp"
#include "cppa/context.hpp"
...
...
@@ -20,8 +21,6 @@ namespace {
using
namespace
cppa
;
using
namespace
cppa
::
detail
;
struct
singleton_container
{
...
...
@@ -67,12 +66,15 @@ struct singleton_container
// wait for all running actors to quit
m_actor_registry
->
await_running_count_equal
(
0
);
// shutdown scheduler
// TODO: figure out why the ... Mac OS dies with a segfault here
# ifndef __APPLE__
auto
s
=
m_scheduler
.
load
();
if
(
s
)
{
s
->
stop
();
delete
s
;
}
# endif
// it's safe now to delete all other singletons
delete
m_group_manager
;
if
(
!
m_msg_dummy
->
deref
())
delete
m_msg_dummy
;
...
...
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