|
@ -195,7 +195,7 @@ static |
|
|
int |
|
|
int |
|
|
_calculate_thread_count(const int raw_thread_count_) |
|
|
_calculate_thread_count(const int raw_thread_count_) |
|
|
{ |
|
|
{ |
|
|
int thread_count; |
|
|
|
|
|
|
|
|
int thread_count = 1; |
|
|
|
|
|
|
|
|
if(raw_thread_count_ == 0) |
|
|
if(raw_thread_count_ == 0) |
|
|
{ |
|
|
{ |
|
@ -211,10 +211,6 @@ _calculate_thread_count(const int raw_thread_count_) |
|
|
{ |
|
|
{ |
|
|
thread_count = raw_thread_count_; |
|
|
thread_count = raw_thread_count_; |
|
|
} |
|
|
} |
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
thread_count = 4; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(thread_count <= 0) |
|
|
if(thread_count <= 0) |
|
|
thread_count = 1; |
|
|
thread_count = 1; |
|
|