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
9e0e9fbf
Commit
9e0e9fbf
authored
Nov 05, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed single_reader_queue::not_empty
parent
8c6e4e05
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
cppa/detail/abstract_actor.hpp
cppa/detail/abstract_actor.hpp
+1
-1
cppa/intrusive/single_reader_queue.hpp
cppa/intrusive/single_reader_queue.hpp
+1
-9
cppa/util/fixed_vector.hpp
cppa/util/fixed_vector.hpp
+1
-5
No files found.
cppa/detail/abstract_actor.hpp
View file @
9e0e9fbf
...
@@ -193,7 +193,7 @@ class abstract_actor : public abstract_actor_base<Base, std::is_base_of<local_ac
...
@@ -193,7 +193,7 @@ class abstract_actor : public abstract_actor_base<Base, std::is_base_of<local_ac
mailbox_element
*
result
=
nullptr
;
mailbox_element
*
result
=
nullptr
;
{
// lifetime scope of guard
{
// lifetime scope of guard
lock_type
guard
{
m_nodes_lock
};
lock_type
guard
{
m_nodes_lock
};
if
(
m_nodes
.
not_
empty
())
{
if
(
!
m_nodes
.
empty
())
{
result
=
m_nodes
.
back
();
result
=
m_nodes
.
back
();
m_nodes
.
pop_back
();
m_nodes
.
pop_back
();
}
}
...
...
cppa/intrusive/single_reader_queue.hpp
View file @
9e0e9fbf
...
@@ -121,15 +121,7 @@ class single_reader_queue {
...
@@ -121,15 +121,7 @@ class single_reader_queue {
return
m_head
==
nullptr
&&
m_stack
.
load
()
==
nullptr
;
return
m_head
==
nullptr
&&
m_stack
.
load
()
==
nullptr
;
}
}
/**
single_reader_queue
()
:
m_stack
(
nullptr
),
m_head
(
nullptr
)
{
}
* @warning call only from the reader (owner)
*/
inline
bool
not_empty
()
const
{
return
!
empty
();
}
single_reader_queue
()
:
m_stack
(
nullptr
),
m_head
(
nullptr
)
{
}
~
single_reader_queue
()
{
~
single_reader_queue
()
{
// empty the stack (void) fetch_new_data();
// empty the stack (void) fetch_new_data();
...
...
cppa/util/fixed_vector.hpp
View file @
9e0e9fbf
...
@@ -127,10 +127,6 @@ class fixed_vector {
...
@@ -127,10 +127,6 @@ class fixed_vector {
return
m_size
==
0
;
return
m_size
==
0
;
}
}
inline
bool
not_empty
()
const
{
return
m_size
>
0
;
}
inline
bool
full
()
const
{
inline
bool
full
()
const
{
return
m_size
==
MaxSize
;
return
m_size
==
MaxSize
;
}
}
...
@@ -141,7 +137,7 @@ class fixed_vector {
...
@@ -141,7 +137,7 @@ class fixed_vector {
}
}
inline
void
pop_back
()
{
inline
void
pop_back
()
{
CPPA_REQUIRE
(
not_
empty
());
CPPA_REQUIRE
(
!
empty
());
--
m_size
;
--
m_size
;
}
}
...
...
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