diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-30 18:24:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-30 18:24:13 +0000 |
commit | 6fd0a7efde08115b568b99b7755861a50f1b6c2e (patch) | |
tree | d8d712f0a5cafe18ddf8ff33296ff24b30beae7f /src/fs/gnunet-service-fs_cp.c | |
parent | 6a4c5ee6195fb7a6fcf90b1bae5ca36926e82023 (diff) | |
download | gnunet-6fd0a7efde08115b568b99b7755861a50f1b6c2e.tar.gz gnunet-6fd0a7efde08115b568b99b7755861a50f1b6c2e.zip |
towards reviving priorities in core API, this time with enum to make classes clearer
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index a586ea503..82b1f5867 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -268,7 +268,7 @@ struct GSF_ConnectedPeer | |||
268 | 268 | ||
269 | /** | 269 | /** |
270 | * Set to 1 if we're currently in the process of calling | 270 | * Set to 1 if we're currently in the process of calling |
271 | * 'GNUNET_CORE_notify_transmit_ready' (so while cth is | 271 | * #GNUNET_CORE_notify_transmit_ready() (so while cth is |
272 | * NULL, we should not call notify_transmit_ready for this | 272 | * NULL, we should not call notify_transmit_ready for this |
273 | * handle right now). | 273 | * handle right now). |
274 | */ | 274 | */ |
@@ -439,7 +439,8 @@ schedule_transmission (struct GSF_PeerTransmitHandle *pth) | |||
439 | GNUNET_assert (NULL == cp->cth); | 439 | GNUNET_assert (NULL == cp->cth); |
440 | cp->cth_in_progress++; | 440 | cp->cth_in_progress++; |
441 | cp->cth = | 441 | cp->cth = |
442 | GNUNET_CORE_notify_transmit_ready (GSF_core, GNUNET_YES, pth->priority, | 442 | GNUNET_CORE_notify_transmit_ready (GSF_core, GNUNET_YES, |
443 | GNUNET_CORE_PRIO_BACKGROUND, | ||
443 | GNUNET_TIME_absolute_get_remaining | 444 | GNUNET_TIME_absolute_get_remaining |
444 | (pth->timeout), &target, pth->size, | 445 | (pth->timeout), &target, pth->size, |
445 | &peer_transmit_ready_cb, cp); | 446 | &peer_transmit_ready_cb, cp); |
@@ -558,7 +559,8 @@ ats_reserve_callback (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
558 | /* reservation success, try transmission now! */ | 559 | /* reservation success, try transmission now! */ |
559 | cp->cth_in_progress++; | 560 | cp->cth_in_progress++; |
560 | cp->cth = | 561 | cp->cth = |
561 | GNUNET_CORE_notify_transmit_ready (GSF_core, GNUNET_YES, pth->priority, | 562 | GNUNET_CORE_notify_transmit_ready (GSF_core, GNUNET_YES, |
563 | GNUNET_CORE_PRIO_BACKGROUND, | ||
562 | GNUNET_TIME_absolute_get_remaining | 564 | GNUNET_TIME_absolute_get_remaining |
563 | (pth->timeout), peer, pth->size, | 565 | (pth->timeout), peer, pth->size, |
564 | &peer_transmit_ready_cb, cp); | 566 | &peer_transmit_ready_cb, cp); |