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
3ae23f9e
Unverified
Commit
3ae23f9e
authored
Feb 16, 2023
by
Noir
Committed by
GitHub
Feb 16, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1375
Fix "mutex destroyed while busy" error on MSVC
parents
a1f4a297
51ad5c1b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
libcaf_core/CMakeLists.txt
libcaf_core/CMakeLists.txt
+1
-5
libcaf_core/caf/async/blocking_consumer.hpp
libcaf_core/caf/async/blocking_consumer.hpp
+1
-0
No files found.
libcaf_core/CMakeLists.txt
View file @
3ae23f9e
...
@@ -227,6 +227,7 @@ caf_add_component(
...
@@ -227,6 +227,7 @@ caf_add_component(
actor_registry
actor_registry
actor_system_config
actor_system_config
actor_termination
actor_termination
async.blocking_consumer
async.blocking_producer
async.blocking_producer
async.consumer_adapter
async.consumer_adapter
async.producer_adapter
async.producer_adapter
...
@@ -381,8 +382,3 @@ caf_add_component(
...
@@ -381,8 +382,3 @@ caf_add_component(
if
(
CAF_ENABLE_TESTING AND CAF_ENABLE_EXCEPTIONS
)
if
(
CAF_ENABLE_TESTING AND CAF_ENABLE_EXCEPTIONS
)
caf_add_test_suites
(
caf-core-test custom_exception_handler
)
caf_add_test_suites
(
caf-core-test custom_exception_handler
)
endif
()
endif
()
# TODO: see https://github.com/actor-framework/actor-framework/issues/1371.
if
(
NOT MSVC
)
caf_add_test_suites
(
caf-core-test async.blocking_consumer
)
endif
()
libcaf_core/caf/async/blocking_consumer.hpp
View file @
3ae23f9e
...
@@ -45,6 +45,7 @@ public:
...
@@ -45,6 +45,7 @@ public:
return
read_result
::
try_again_later
;
return
read_result
::
try_again_later
;
}
}
auto
[
again
,
n
]
=
buf_
->
pull_unsafe
(
guard
,
policy
,
1u
,
*
this
);
auto
[
again
,
n
]
=
buf_
->
pull_unsafe
(
guard
,
policy
,
1u
,
*
this
);
guard
.
unlock
();
if
(
!
again
)
{
if
(
!
again
)
{
buf_
=
nullptr
;
buf_
=
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