Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
08d94d0e
Unverified
Commit
08d94d0e
authored
Apr 18, 2020
by
Luca Boccassi
Committed by
GitHub
Apr 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3877 from gummif/gfa/spinlock-fix
Problem: Spinning on atomics can cause hangs
parents
2745ac31
ff800899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
unittest_poller.cpp
unittests/unittest_poller.cpp
+2
-0
No files found.
unittests/unittest_poller.cpp
View file @
08d94d0e
...
...
@@ -103,6 +103,7 @@ void wait_in_events (test_events_t &events_)
{
void
*
watch
=
zmq_stopwatch_start
();
while
(
events_
.
in_events
.
get
()
<
1
)
{
msleep
(
1
);
#ifdef ZMQ_BUILD_DRAFT
TEST_ASSERT_LESS_OR_EQUAL_MESSAGE
(
SETTLE_TIME
,
zmq_stopwatch_intermediate
(
watch
),
...
...
@@ -116,6 +117,7 @@ void wait_timer_events (test_events_t &events_)
{
void
*
watch
=
zmq_stopwatch_start
();
while
(
events_
.
timer_events
.
get
()
<
1
)
{
msleep
(
1
);
#ifdef ZMQ_BUILD_DRAFT
TEST_ASSERT_LESS_OR_EQUAL_MESSAGE
(
SETTLE_TIME
,
zmq_stopwatch_intermediate
(
watch
),
...
...
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