unix, windows: move uv_now() to uv-common.c
This commit is contained in:
parent
b93cf8b594
commit
e0bdb3dbc9
@ -340,11 +340,6 @@ void uv_update_time(uv_loop_t* loop) {
|
||||
}
|
||||
|
||||
|
||||
uint64_t uv_now(uv_loop_t* loop) {
|
||||
return loop->time;
|
||||
}
|
||||
|
||||
|
||||
int uv_is_active(const uv_handle_t* handle) {
|
||||
return uv__is_active(handle);
|
||||
}
|
||||
|
||||
@ -429,3 +429,8 @@ void uv_unref(uv_handle_t* handle) {
|
||||
void uv_stop(uv_loop_t* loop) {
|
||||
loop->stop_flag = 1;
|
||||
}
|
||||
|
||||
|
||||
uint64_t uv_now(uv_loop_t* loop) {
|
||||
return loop->time;
|
||||
}
|
||||
|
||||
@ -45,11 +45,6 @@ void uv_update_time(uv_loop_t* loop) {
|
||||
}
|
||||
|
||||
|
||||
uint64_t uv_now(uv_loop_t* loop) {
|
||||
return loop->time;
|
||||
}
|
||||
|
||||
|
||||
static int uv_timer_compare(uv_timer_t* a, uv_timer_t* b) {
|
||||
if (a->due < b->due)
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user