Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
margo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
sds
margo
Commits
4cc9cbcd
Commit
4cc9cbcd
authored
Jun 29, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more selective about when to abt yield
parent
bbb250f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
src/margo.c
src/margo.c
+23
-3
No files found.
src/margo.c
View file @
4cc9cbcd
...
...
@@ -326,8 +326,23 @@ static void hg_progress_fn(void* foo)
* to make sure that this ULT is the lowest priority in that
* scenario.
*/
ret
=
HG_Progress
(
mid
->
hg_context
,
0
);
if
(
ret
==
HG_SUCCESS
)
{
/* Mercury completed something; loop around to trigger
* callbacks
*/
ABT_thread_yield
();
HG_Progress
(
mid
->
hg_context
,
0
);
}
else
if
(
ret
==
HG_TIMEOUT
)
{
/* No completion; yield here to allow other ULTs to run */
}
else
{
/* TODO: error handling */
fprintf
(
stderr
,
"WARNING: unexpected return code (%d) from HG_Progress()
\n
"
,
ret
);
}
}
else
{
...
...
@@ -348,7 +363,12 @@ static void hg_progress_fn(void* foo)
hg_progress_timeout
=
0
;
}
}
HG_Progress
(
mid
->
hg_context
,
hg_progress_timeout
);
ret
=
HG_Progress
(
mid
->
hg_context
,
hg_progress_timeout
);
if
(
ret
!=
HG_SUCCESS
&&
ret
!=
HG_TIMEOUT
)
{
/* TODO: error handling */
fprintf
(
stderr
,
"WARNING: unexpected return code (%d) from HG_Progress()
\n
"
,
ret
);
}
}
/* check for any expired timers */
...
...
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