mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Modify process semantics; rescheduling is now automatic.
Add reference-counting to processes. Add timer_running() test.
This commit is contained in:
@@ -37,4 +37,15 @@ struct retry_timer {
|
||||
extern void start_timer ( struct retry_timer *timer );
|
||||
extern void stop_timer ( struct retry_timer *timer );
|
||||
|
||||
/**
|
||||
* Test to see if timer is currently running
|
||||
*
|
||||
* @v timer Retry timer
|
||||
* @ret running Non-zero if timer is running
|
||||
*/
|
||||
static inline __attribute__ (( always_inline )) unsigned long
|
||||
timer_running ( struct retry_timer *timer ) {
|
||||
return ( timer->start );
|
||||
}
|
||||
|
||||
#endif /* _GPXE_RETRY_H */
|
||||
|
||||
Reference in New Issue
Block a user