Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caitlin Ross
codes
Commits
8821caef
Commit
8821caef
authored
Sep 26, 2013
by
Philip Carns
Browse files
fix last reverse computation bug
parent
7474d5b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/workload/codes-workload-test-cn-lp.c
View file @
8821caef
...
...
@@ -44,6 +44,7 @@ struct client_msg
struct
codes_workload_op
op_rc
;
int
target_barrier_count_rc
;
int
current_barrier_count_rc
;
int
released_barrier_count_rc
;
};
static
void
handle_client_op_loop_rev_event
(
...
...
@@ -200,8 +201,15 @@ static void handle_client_op_barrier_rev_event(
client_msg
*
m
,
tw_lp
*
lp
)
{
int
i
;
ns
->
current_barrier_count
=
m
->
current_barrier_count_rc
;
ns
->
target_barrier_count
=
m
->
target_barrier_count_rc
;
for
(
i
=
0
;
i
<
m
->
released_barrier_count_rc
;
i
++
)
{
codes_local_latency_reverse
(
lp
);
}
return
;
}
...
...
@@ -247,6 +255,7 @@ static void handle_client_op_barrier_event(
/* save barrier counters for reverse computation */
m
->
current_barrier_count_rc
=
ns
->
current_barrier_count
;
m
->
target_barrier_count_rc
=
ns
->
target_barrier_count
;
m
->
released_barrier_count_rc
=
0
;
assert
(
ns
->
target_barrier_count
==
0
||
ns
->
target_barrier_count
==
m
->
barrier_count
);
if
(
ns
->
target_barrier_count
==
0
)
...
...
@@ -259,6 +268,7 @@ static void handle_client_op_barrier_event(
if
(
ns
->
current_barrier_count
==
ns
->
target_barrier_count
)
{
m
->
released_barrier_count_rc
=
ns
->
current_barrier_count
;
/* release all clients, including self */
for
(
i
=
0
;
i
<
ns
->
current_barrier_count
;
i
++
)
{
...
...
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