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
907e3a73
Commit
907e3a73
authored
Feb 13, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve assertions in LIFO inbox
parent
0b5accf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
libcaf_core/caf/intrusive/lifo_inbox.hpp
libcaf_core/caf/intrusive/lifo_inbox.hpp
+5
-1
No files found.
libcaf_core/caf/intrusive/lifo_inbox.hpp
View file @
907e3a73
...
...
@@ -123,9 +123,13 @@ public:
// empty.
CAF_ASSERT
(
new_head
==
stack_closed_tag
()
||
new_head
==
stack_empty_tag
());
// Must not be called on a closed queue.
pointer
e
=
stack_
.
load
();
// Must not be called on a closed queue.
CAF_ASSERT
(
e
!=
stack_closed_tag
());
// Must not be called on a blocked queue unless for setting it to closed,
// because that would mean an actor accesses its mailbox after blocking its
// mailbox but before receiving anything.
CAF_ASSERT
(
e
!=
reader_blocked_tag
()
||
new_head
==
stack_closed_tag
());
// We don't assert these conditions again since only the owner is allowed
// to call this member function, i.e., there's never a race on `take_head`.
while
(
e
!=
new_head
)
{
...
...
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