Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: xz/src/xz/hardware.h

Issue 2869016: Add an unpatched version of xz, XZ Utils, to /trunk/deps/third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « xz/src/xz/file_io.c ('k') | xz/src/xz/hardware.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file hardware.h
4 /// \brief Detection of available hardware resources
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12
13 /// Initialize some hardware-specific variables, which are needed by other
14 /// hardware_* functions.
15 extern void hardware_init(void);
16
17
18 /// Set custom value for maximum number of coder threads.
19 extern void hardware_threadlimit_set(uint32_t threadlimit);
20
21 /// Get the maximum number of coder threads. Some additional helper threads
22 /// are allowed on top of this).
23 extern uint32_t hardware_threadlimit_get(void);
24
25
26 /// Set custom memory usage limit. This is used for both encoding and
27 /// decoding. Zero indicates resetting the limit back to defaults.
28 extern void hardware_memlimit_set(uint64_t memlimit);
29
30 /// Set custom memory usage limit as a percentage of installed RAM.
31 /// The percentage must be in the range [1, 100].
32 extern void hardware_memlimit_set_percentage(uint32_t percentage);
33
34 /// Get the current memory usage limit.
35 extern uint64_t hardware_memlimit_get(void);
OLDNEW
« no previous file with comments | « xz/src/xz/file_io.c ('k') | xz/src/xz/hardware.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698