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
19db4a86
Commit
19db4a86
authored
Mar 25, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
4a56c02a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
0 deletions
+5
-0
libcaf_core/caf/intrusive/fifo_inbox.hpp
libcaf_core/caf/intrusive/fifo_inbox.hpp
+1
-0
libcaf_core/caf/intrusive/task_queue.hpp
libcaf_core/caf/intrusive/task_queue.hpp
+1
-0
libcaf_core/caf/intrusive/wdrr_dynamic_multiplexed_queue.hpp
libcaf_core/caf/intrusive/wdrr_dynamic_multiplexed_queue.hpp
+1
-0
libcaf_core/caf/intrusive/wdrr_fixed_multiplexed_queue.hpp
libcaf_core/caf/intrusive/wdrr_fixed_multiplexed_queue.hpp
+1
-0
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+1
-0
No files found.
libcaf_core/caf/intrusive/fifo_inbox.hpp
View file @
19db4a86
...
@@ -161,6 +161,7 @@ public:
...
@@ -161,6 +161,7 @@ public:
return
queue_
.
peek
();
return
queue_
.
peek
();
}
}
/// Tries to find an element in the queue that matches the given predicate.
template
<
class
Predicate
>
template
<
class
Predicate
>
pointer
find_if
(
Predicate
pred
)
{
pointer
find_if
(
Predicate
pred
)
{
fetch_more
();
fetch_more
();
...
...
libcaf_core/caf/intrusive/task_queue.hpp
View file @
19db4a86
...
@@ -124,6 +124,7 @@ public:
...
@@ -124,6 +124,7 @@ public:
f
(
*
i
);
f
(
*
i
);
}
}
/// Tries to find an element in the queue that matches the given predicate.
template
<
class
Predicate
>
template
<
class
Predicate
>
pointer
find_if
(
Predicate
pred
)
{
pointer
find_if
(
Predicate
pred
)
{
for
(
auto
i
=
begin
();
i
!=
end
();
++
i
)
for
(
auto
i
=
begin
();
i
!=
end
();
++
i
)
...
...
libcaf_core/caf/intrusive/wdrr_dynamic_multiplexed_queue.hpp
View file @
19db4a86
...
@@ -154,6 +154,7 @@ public:
...
@@ -154,6 +154,7 @@ public:
kvp
.
second
.
peek_all
(
f
);
kvp
.
second
.
peek_all
(
f
);
}
}
/// Tries to find an element in the queue that matches the given predicate.
template
<
class
Predicate
>
template
<
class
Predicate
>
pointer
find_if
(
Predicate
pred
)
{
pointer
find_if
(
Predicate
pred
)
{
for
(
auto
&
kvp
:
qs_
)
for
(
auto
&
kvp
:
qs_
)
...
...
libcaf_core/caf/intrusive/wdrr_fixed_multiplexed_queue.hpp
View file @
19db4a86
...
@@ -80,6 +80,7 @@ public:
...
@@ -80,6 +80,7 @@ public:
return
peek_recursion
<
0
>
();
return
peek_recursion
<
0
>
();
}
}
/// Tries to find an element in the queue that matches the given predicate.
template
<
class
Predicate
>
template
<
class
Predicate
>
pointer
find_if
(
Predicate
pred
)
{
pointer
find_if
(
Predicate
pred
)
{
return
find_if_recursion
<
0
>
(
pred
);
return
find_if_recursion
<
0
>
(
pred
);
...
...
libcaf_core/src/scheduled_actor.cpp
View file @
19db4a86
...
@@ -175,6 +175,7 @@ void scheduled_actor::enqueue(mailbox_element_ptr ptr, execution_unit* eu) {
...
@@ -175,6 +175,7 @@ void scheduled_actor::enqueue(mailbox_element_ptr ptr, execution_unit* eu) {
break
;
break
;
}
}
}
}
mailbox_element
*
scheduled_actor
::
peek_at_next_mailbox_element
()
{
mailbox_element
*
scheduled_actor
::
peek_at_next_mailbox_element
()
{
if
(
mailbox
().
closed
()
||
mailbox
().
blocked
())
{
if
(
mailbox
().
closed
()
||
mailbox
().
blocked
())
{
return
nullptr
;
return
nullptr
;
...
...
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