Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

timer_destroy.c File Reference


Detailed Description

For internal use only.

This file contains the implementation of the timer_destroy() function and its helper, _timer_untree().

Definition in file timer_destroy.c.

#include "engines_int.h"

Include dependency graph for timer_destroy.c:

Go to the source code of this file.

Functions

ev_err_t _timer_untree (ev_ctx_t *ctx, ev_tim_t *tim)
 Remove a timer from the timer tree.
ev_err_t timer_destroy (ev_ctx_t *ctx, ev_tim_t *tim)
 Destroy an existing timer.


Function Documentation

ev_err_t _timer_untree ev_ctx_t ctx,
ev_tim_t tim
 

For internal use only.

This function removes the specified timer from the timer tree, restoring the tree's heap property in the process.

Test:
This function is tested in t_timer_fcns.c.
Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] tim A pointer to the ev_tim_t to remove from the tree.
Returns:
Zero on success, non-zero if an assertion failure occurs.

Definition at line 32 of file timer_destroy.c.

References _timer_heapify_down(), _timer_heapify_up(), _ev_ctx_s::ec_timtree, ev_assert, ev_return, ev_trace, _ev_tim_s::ti_expire, _ev_tim_s::ti_node, _ev_timnode_s::tn_left, _ev_timnode_s::tn_next, _ev_timnode_s::tn_parent, _ev_timnode_s::tn_prev, _ev_timnode_s::tn_right, tt_node_fix, tt_node_init, and tv_comp.

Referenced by timer_destroy(), and timer_resched().

Here is the call graph for this function:


Generated on Wed Dec 28 23:37:46 2005 for event by  doxygen 1.4.4