* wait_for_timer() now returns a status code.
* wait_for_timer() now detects if it has been called from within the timer execution thread, and will return in error instead of waiting for itself forever. This fixes bug #2682. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27620 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -141,7 +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);
|
||||
status_t (*wait_for_timer)(struct net_timer *timer);
|
||||
bool (*is_timer_active)(struct net_timer *timer);
|
||||
|
||||
// syscall restart
|
||||
|
||||
Reference in New Issue
Block a user