| hardware.h | hardware.h | |||
|---|---|---|---|---|
| skipping to change at line 50 | skipping to change at line 50 | |||
| * usage limit for decompressing or how much memory it is OK to use | * usage limit for decompressing or how much memory it is OK to use | |||
| * for compressing. | * for compressing. | |||
| * | * | |||
| * \return On success, the total amount of physical memory in bytes | * \return On success, the total amount of physical memory in bytes | |||
| * is returned. If the amount of RAM cannot be determined, | * is returned. If the amount of RAM cannot be determined, | |||
| * zero is returned. This can happen if an error occurs | * zero is returned. This can happen if an error occurs | |||
| * or if there is no code in liblzma to detect the amount | * or if there is no code in liblzma to detect the amount | |||
| * of RAM on the specific operating system. | * of RAM on the specific operating system. | |||
| */ | */ | |||
| extern LZMA_API(uint64_t) lzma_physmem(void) lzma_nothrow; | extern LZMA_API(uint64_t) lzma_physmem(void) lzma_nothrow; | |||
| /** | ||||
| * \brief Get the number of processor cores or threads | ||||
| * | ||||
| * This function may be useful when determining how many threads to use. | ||||
| * If the hardware supports more than one thread per CPU core, the number | ||||
| * of hardware threads is returned if that information is available. | ||||
| * | ||||
| * \brief On success, the number of available CPU threads or cores is | ||||
| * returned. If this information isn't available or an error | ||||
| * occurs, zero is returned. | ||||
| */ | ||||
| extern LZMA_API(uint32_t) lzma_cputhreads(void) lzma_nothrow; | ||||
| End of changes. 1 change blocks. | ||||
| 0 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||