Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Commits
e1722b7e
Commit
e1722b7e
authored
4 years ago
by
Florian Schmaus
Browse files
Options
Downloads
Plain Diff
Merge branch 'improved_dying' into 'master'
Improved dying See merge request
!89
parents
fef50ae8
a8dadf8b
No related branches found
Branches containing commit
No related tags found
1 merge request
!89
Improved dying
Pipeline
#57678
passed
4 years ago
Stage: smoke-test
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
emper/Common.cpp
+1
-1
1 addition, 1 deletion
emper/Common.cpp
emper/Common.hpp
+11
-3
11 additions, 3 deletions
emper/Common.hpp
emper/strategies/laws/LawsDispatcher.cpp
+1
-1
1 addition, 1 deletion
emper/strategies/laws/LawsDispatcher.cpp
with
13 additions
and
5 deletions
emper/Common.cpp
+
1
−
1
View file @
e1722b7e
...
...
@@ -10,7 +10,7 @@ void die(const char* message, bool usePerror) {
if
(
usePerror
)
{
std
::
perror
(
message
);
}
else
{
std
::
c
out
<<
message
<<
std
::
endl
;
std
::
c
err
<<
message
<<
std
::
endl
;
}
exit
(
EXIT_FAILURE
);
}
This diff is collapsed.
Click to expand it.
emper/Common.hpp
+
11
−
3
View file @
e1722b7e
// SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright © 2020 Florian Schmaus
// Copyright © 2020
-2021
Florian Schmaus
, Florian Fischer
#pragma once
#include
<functional>
...
...
@@ -9,8 +9,16 @@ using func_t = std::function<void()>;
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define DIE die(__FILE__ ":" TOSTRING(__LINE__), false)
#define DIE_MSG(x) die(__FILE__ ":" TOSTRING(__LINE__) " " #x, false)
#define DIE_MSG_ERRNO(x) die(__FILE__ ":" TOSTRING(__LINE__) " " #x, true)
// See Debug.hpp why we disable clang-format for the multi statement macro definitions
// clang-format off
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define DIE_MSG(x) do { std::stringstream sst; sst << __FILE__ ":" TOSTRING(__LINE__) " " << x; die(sst.str().c_str(), false); } while (false)
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define DIE_MSG_ERRNO(x) do { std::stringstream sst; sst << __FILE__ ":" TOSTRING(__LINE__) " " << x; die(sst.str().c_str(), true); } while (false)
// clang-format on
// We compile with -fno-exceptions for the moment.
//#define THROW(x) do { throw std::runtime_error(x); } while (false)
...
...
This diff is collapsed.
Click to expand it.
emper/strategies/laws/LawsDispatcher.cpp
+
1
−
1
View file @
e1722b7e
...
...
@@ -48,7 +48,7 @@ void LawsDispatcher::dispatchLoop() {
lawsStrategy
.
dispatchedFiberFromAnywhere
.
fetch_add
(
1
,
std
::
memory_order_relaxed
);
break
;
default:
DIE_MSG
(
"Unknown fiber
flag
: "
<<
flag
);
DIE_MSG
(
"Unknown fiber
source
: "
<<
next
.
metadata
);
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment