* Added a net_timer::flags field, and used it to implement the new
wait_for_timer() function. * Moved the internal Fifo class into utility.cpp - we should probably just remove it again. * Fixed uninit_timers() so that it would even work in combination with the timer thread if there are timers left to be scheduled. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -44,6 +44,7 @@ struct net_timer {
|
||||
net_timer_func hook;
|
||||
void *data;
|
||||
bigtime_t due;
|
||||
uint32 flags;
|
||||
};
|
||||
|
||||
typedef int32 (*net_deframe_func)(struct net_device *device,
|
||||
@@ -140,6 +141,7 @@ struct net_stack_module_info {
|
||||
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);
|
||||
void (*wait_for_timer)(struct net_timer *timer);
|
||||
bool (*is_timer_active)(struct net_timer *timer);
|
||||
|
||||
// syscall restart
|
||||
|
||||
Reference in New Issue
Block a user