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
2da99380
Commit
2da99380
authored
Apr 01, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix thread-safe multitimeout
parent
f2db0225
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
libcaf_core/caf/detail/thread_safe_actor_clock.hpp
libcaf_core/caf/detail/thread_safe_actor_clock.hpp
+3
-0
libcaf_core/src/thread_safe_actor_clock.cpp
libcaf_core/src/thread_safe_actor_clock.cpp
+9
-0
No files found.
libcaf_core/caf/detail/thread_safe_actor_clock.hpp
View file @
2da99380
...
...
@@ -39,6 +39,9 @@ public:
void
set_request_timeout
(
time_point
t
,
abstract_actor
*
self
,
message_id
id
)
override
;
void
set_multi_timeout
(
time_point
t
,
abstract_actor
*
self
,
atom_value
type
,
uint64_t
id
)
override
;
void
cancel_ordinary_timeout
(
abstract_actor
*
self
,
atom_value
type
)
override
;
void
cancel_request_timeout
(
abstract_actor
*
self
,
message_id
id
)
override
;
...
...
libcaf_core/src/thread_safe_actor_clock.cpp
View file @
2da99380
...
...
@@ -52,6 +52,15 @@ void thread_safe_actor_clock::set_request_timeout(time_point t,
}
}
void
thread_safe_actor_clock
::
set_multi_timeout
(
time_point
t
,
abstract_actor
*
self
,
atom_value
type
,
uint64_t
id
)
{
guard_type
guard
{
mx_
};
if
(
!
done_
)
{
super
::
set_multi_timeout
(
t
,
self
,
type
,
id
);
cv_
.
notify_all
();
}
}
void
thread_safe_actor_clock
::
cancel_ordinary_timeout
(
abstract_actor
*
self
,
atom_value
type
)
{
guard_type
guard
{
mx_
};
...
...
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