aboutsummaryrefslogtreecommitdiff
path: root/src/xz/hardware.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-04-09 15:11:13 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-04-09 15:11:13 +0300
commit335fe260a81f61ec99ff5940df733b4c50aedb7c (patch)
tree4209ce7dcdf376be695417e3e3a500e006cf7871 /src/xz/hardware.h
parentxz: Change size_t to uint32_t in a few places. (diff)
downloadxz-335fe260a81f61ec99ff5940df733b4c50aedb7c.tar.xz
xz: Minor internal changes to handling of --threads.
Now it always defaults to one thread. Maybe this will change again if a threading method is added that doesn't affect memory usage.
Diffstat (limited to 'src/xz/hardware.h')
-rw-r--r--src/xz/hardware.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xz/hardware.h b/src/xz/hardware.h
index bed952b0..46ebad5b 100644
--- a/src/xz/hardware.h
+++ b/src/xz/hardware.h
@@ -15,12 +15,11 @@
extern void hardware_init(void);
-/// Set custom value for maximum number of coder threads.
-extern void hardware_threadlimit_set(uint32_t threadlimit);
+/// Set the maximum number of worker threads.
+extern void hardware_threads_set(uint32_t threadlimit);
-/// Get the maximum number of coder threads. Some additional helper threads
-/// are allowed on top of this).
-extern uint32_t hardware_threadlimit_get(void);
+/// Get the maximum number of worker threads.
+extern uint32_t hardware_threads_get(void);
/// Set the memory usage limit. There are separate limits for compression