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
LARN
PRRT
Commits
07bc5741
Commit
07bc5741
authored
Mar 26, 2018
by
Andreas Schmidt
Browse files
Fix errors in channel state information.
parent
43734ead
Pipeline
#2148
failed with stages
in 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/proto/channelStateInformation.c
View file @
07bc5741
...
@@ -52,20 +52,9 @@ void PrrtChannelStateInformation_update_plr(PrrtChannelStateInformation *csi, pr
...
@@ -52,20 +52,9 @@ void PrrtChannelStateInformation_update_plr(PrrtChannelStateInformation *csi, pr
}
}
void
PrrtChannelStateInformation_update_delivery_rate
(
PrrtChannelStateInformation
*
csi
,
PrrtPacket
*
packet
,
P
rrt
RateSample
*
rateSampl
e
)
{
void
PrrtChannelStateInformation_update_delivery_rate
(
PrrtChannelStateInformation
*
csi
,
PrrtPacket
*
packet
,
p
rrt
DeliveryRate_t
rat
e
)
{
pthread_mutex_lock
(
&
csi
->
lock
);
pthread_mutex_lock
(
&
csi
->
lock
);
prrtDeliveryRate_t
rate
=
rateSample
->
delivery_rate
;
csi
->
deliveryRate
=
rate
;
csi
->
deliveryRate
=
rate
;
if
(
csi
->
btlbw_rounds
>
csi
->
btlbw_filter_length_rtts
)
{
csi
->
btlbw
=
0
;
}
csi
->
btlbw_rounds
+=
1
;
if
(
csi
->
btlbw
<
rate
)
{
csi
->
btlbw
=
rate
;
csi
->
btlbw_rounds
=
0
;
}
pthread_mutex_unlock
(
&
csi
->
lock
);
pthread_mutex_unlock
(
&
csi
->
lock
);
}
}
void
PrrtChannelStateInformation_update_app_limited
(
PrrtChannelStateInformation
*
csi
,
bool
appLimited
)
{
void
PrrtChannelStateInformation_update_app_limited
(
PrrtChannelStateInformation
*
csi
,
bool
appLimited
)
{
...
...
prrt/proto/channelStateInformation.h
View file @
07bc5741
...
@@ -35,7 +35,7 @@ bool PrrtChannelStateInformation_get_app_limited(PrrtChannelStateInformation *cs
...
@@ -35,7 +35,7 @@ bool PrrtChannelStateInformation_get_app_limited(PrrtChannelStateInformation *cs
prrtPacketLossRate_t
PrrtChannelStateInformation_get_plr
(
PrrtChannelStateInformation
*
csi
);
prrtPacketLossRate_t
PrrtChannelStateInformation_get_plr
(
PrrtChannelStateInformation
*
csi
);
void
PrrtChannelStateInformation_update_plr
(
PrrtChannelStateInformation
*
csi
,
prrtSequenceNumber_t
erasures
,
void
PrrtChannelStateInformation_update_plr
(
PrrtChannelStateInformation
*
csi
,
prrtSequenceNumber_t
erasures
,
prrtSequenceNumber_t
packets
);
prrtSequenceNumber_t
packets
);
void
PrrtChannelStateInformation_update_delivery_rate
(
PrrtChannelStateInformation
*
csi
,
PrrtPacket
*
packet
,
P
rrt
RateSample
*
rate
);
void
PrrtChannelStateInformation_update_delivery_rate
(
PrrtChannelStateInformation
*
csi
,
PrrtPacket
*
packet
,
p
rrt
DeliveryRate_t
rate
);
void
PrrtChannelStateInformation_update_app_limited
(
PrrtChannelStateInformation
*
csi
,
bool
appLimited
);
void
PrrtChannelStateInformation_update_app_limited
(
PrrtChannelStateInformation
*
csi
,
bool
appLimited
);
bool
PrrtChannelStateInformation_destroy
(
PrrtChannelStateInformation
*
csi
);
bool
PrrtChannelStateInformation_destroy
(
PrrtChannelStateInformation
*
csi
);
...
...
Write
Preview
Supports
Markdown
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