AmendHub

Download:

jcs

/

subtext

/

amendments

/

15

uthread: sleep -> msleep to make it clear it's milliseconds


jcs made amendment 15 over 2 years ago
--- uthread.c Sun Dec 5 22:06:12 2021 +++ uthread.c Tue Dec 7 13:47:59 2021 @@ -81,7 +81,7 @@ uthread_yield(void) } void -uthread_sleep(unsigned long millis) +uthread_msleep(unsigned long millis) { /* Ticks is in 1/60 of a second, but it's easier to think in millis */ unsigned long ts = millis / ((double)1000 / (double)60); --- uthread.h Sun Dec 5 21:48:01 2021 +++ uthread.h Mon Dec 6 15:47:50 2021 @@ -47,6 +47,6 @@ void uthread_init(void); struct uthread *uthread_add(void *func, void *arg); void uthread_yield(void); void uthread_coordinate(void); -void uthread_sleep(unsigned long millis); +void uthread_msleep(unsigned long millis); #endif /* __UTHREAD_H__ */