Added two more utility functions to the timer service:
* cancel_timer() cancels a timer, and returns true if the timer was running * is_timer_active() determines if the timer is currently running or not. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19393 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -93,6 +93,8 @@ struct net_stack_module_info {
|
||||
// timer
|
||||
void (*init_timer)(struct net_timer *timer, net_timer_func hook, void *data);
|
||||
void (*set_timer)(struct net_timer *timer, bigtime_t delay);
|
||||
bool (*cancel_timer)(struct net_timer *timer);
|
||||
bool (*is_timer_active)(struct net_timer *timer);
|
||||
};
|
||||
|
||||
#endif // NET_STACK_H
|
||||
|
||||
Reference in New Issue
Block a user