Go to the source code of this file.
Functions | |
static void | update_epoch (struct ccn_schedule *sched) |
static void | update_time (struct ccn_schedule *sched) |
struct ccn_schedule * | ccn_schedule_create (void *clienth, const struct ccn_gettime *ccnclock) |
void | ccn_schedule_destroy (struct ccn_schedule **schedp) |
struct ccn_gettime * | ccn_schedule_get_gettime (struct ccn_schedule *schedp) |
static void | heap_insert (struct ccn_schedule_heap_item *heap, int micros, struct ccn_scheduled_event *ev, int h, int n) |
static void | heap_sift (struct ccn_schedule_heap_item *heap, int n) |
static struct ccn_scheduled_event * | reschedule_event (struct ccn_schedule *sched, int micros, struct ccn_scheduled_event *ev) |
struct ccn_scheduled_event * | ccn_schedule_event (struct ccn_schedule *sched, int micros, ccn_scheduled_action action, void *evdata, intptr_t evint) |
static int | ccn_schedule_cancelled_event (struct ccn_schedule *sched, void *clienth, struct ccn_scheduled_event *ev, int flags) |
int | ccn_schedule_cancel (struct ccn_schedule *sched, struct ccn_scheduled_event *ev) |
Cancel a scheduled event. | |
static void | ccn_schedule_run_next (struct ccn_schedule *sched) |
int | ccn_schedule_run (struct ccn_schedule *sched) |
Part of the CCNx C Library.
Copyright (C) 2009 Palo Alto Research Center, Inc.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file ccn_schedule.c.
int ccn_schedule_cancel | ( | struct ccn_schedule * | sched, | |
struct ccn_scheduled_event * | ev | |||
) |
Cancel a scheduled event.
Cancels the event (calling action with CCN_SCHEDULE_CANCEL set)
Definition at line 254 of file ccn_schedule.c.
Referenced by ccnd_internal_client_stop(), ccnr_direct_client_stop(), ccnr_internal_client_stop(), content_queue_destroy(), destroyCompareData(), and r_sendq_content_queue_destroy().
static int ccn_schedule_cancelled_event | ( | struct ccn_schedule * | sched, | |
void * | clienth, | |||
struct ccn_scheduled_event * | ev, | |||
int | flags | |||
) | [static] |
struct ccn_schedule* ccn_schedule_create | ( | void * | clienth, | |
const struct ccn_gettime * | ccnclock | |||
) | [read] |
Definition at line 88 of file ccn_schedule.c.
Referenced by ccnd_create(), main(), and r_init_create().
void ccn_schedule_destroy | ( | struct ccn_schedule ** | schedp | ) |
Definition at line 103 of file ccn_schedule.c.
Referenced by ccnd_destroy(), incoming_content(), main(), and r_init_destroy().
struct ccn_scheduled_event* ccn_schedule_event | ( | struct ccn_schedule * | sched, | |
int | micros, | |||
ccn_scheduled_action | action, | |||
void * | evdata, | |||
intptr_t | evint | |||
) | [read] |
Definition at line 222 of file ccn_schedule.c.
Referenced by age_forwarding_needed(), ccnd_face_status_change(), ccnd_internal_client_start(), ccnr_direct_client_start(), ccnr_face_status_change(), ccnr_internal_client_start(), clean_needed(), face_send_queue_insert(), kickCompare(), main(), propagate_interest(), r_proto_policy_complete(), r_sendq_face_send_queue_insert(), r_store_index_needs_cleaning(), r_store_init(), r_store_set_content_timer(), r_sync_enumerate(), reap_enumerations_needed(), reap_needed(), set_content_timer(), SyncStartHeartbeat(), SyncUpdateRoot(), and update_rtt().
struct ccn_gettime* ccn_schedule_get_gettime | ( | struct ccn_schedule * | schedp | ) | [read] |
Definition at line 129 of file ccn_schedule.c.
int ccn_schedule_run | ( | struct ccn_schedule * | sched | ) |
Definition at line 301 of file ccn_schedule.c.
Referenced by ccnd_run(), main(), r_dispatch_run(), and r_init_create().
static void ccn_schedule_run_next | ( | struct ccn_schedule * | sched | ) | [static] |
static void heap_insert | ( | struct ccn_schedule_heap_item * | heap, | |
int | micros, | |||
struct ccn_scheduled_event * | ev, | |||
int | h, | |||
int | n | |||
) | [static] |
static void heap_sift | ( | struct ccn_schedule_heap_item * | heap, | |
int | n | |||
) | [static] |
static struct ccn_scheduled_event* reschedule_event | ( | struct ccn_schedule * | sched, | |
int | micros, | |||
struct ccn_scheduled_event * | ev | |||
) | [static, read] |
Definition at line 186 of file ccn_schedule.c.
Referenced by ccn_schedule_event(), and ccn_schedule_run_next().
static void update_epoch | ( | struct ccn_schedule * | sched | ) | [static] |
static void update_time | ( | struct ccn_schedule * | sched | ) | [static] |
Definition at line 66 of file ccn_schedule.c.
Referenced by ccn_schedule_create(), ccn_schedule_event(), and ccn_schedule_run().