Skip to content
Snippets Groups Projects
Commit c5c130e6 authored by Nils Gladitz's avatar Nils Gladitz Committed by Brad King
Browse files

cmArchiveWrite: Consolidate multiple ways to set thread count

Merge use of SetFilterOption() into more abstract thread count
in cmArchiveWrite constructor.

libarchive defaulting of threads for threads == 0 seems to be
configuration dependent. Preemptively default thread count via
std::thread::hardware_concurrency().

Also allow negative values for the thread count in which case
the detected hardware concurrency is also used but the given
absolute thread count is used as an upper limit.
parent 5380d858
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment