now working with libuv v1.29.x (close #151)
This commit is contained in:
parent
b127f58e41
commit
1dc61d523d
@ -16,7 +16,7 @@ endif()
|
|||||||
# Project configuration
|
# Project configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
project(uvw VERSION 1.16.0)
|
project(uvw VERSION 1.17.0)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ ExternalProject_Add(
|
|||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
libuv
|
libuv
|
||||||
GIT_REPOSITORY https://github.com/libuv/libuv.git
|
GIT_REPOSITORY https://github.com/libuv/libuv.git
|
||||||
GIT_TAG v1.28.0
|
GIT_TAG v1.29.0
|
||||||
SOURCE_DIR @LIBUV_DEPS_DIR@
|
SOURCE_DIR @LIBUV_DEPS_DIR@
|
||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BUILD_COMMAND ""
|
BUILD_COMMAND ""
|
||||||
|
|||||||
@ -897,6 +897,21 @@ struct Utilities {
|
|||||||
return uv_get_total_memory();
|
return uv_get_total_memory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the amount of memory available to the process (in bytes).
|
||||||
|
*
|
||||||
|
* Gets the amount of memory available to the process based on limits
|
||||||
|
* imposed by the OS. If there is no such constraint, or the constraint is
|
||||||
|
* unknown, `0` is returned.<br/>
|
||||||
|
* Note that it is not unusual for this value to be less than or greater
|
||||||
|
* than `totalMemory`.
|
||||||
|
*
|
||||||
|
* @return Amount of memory available to the process.
|
||||||
|
*/
|
||||||
|
static uint64_t constrainedMemory() noexcept {
|
||||||
|
return uv_get_constrained_memory();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the current system uptime.
|
* @brief Gets the current system uptime.
|
||||||
* @return The current system uptime or 0 in case of errors.
|
* @return The current system uptime or 0 in case of errors.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user