Fix setter parameter types for ThreadPool.

This commit is contained in:
Relintai 2022-09-17 22:23:29 +02:00
parent a8d5a37024
commit 48d26e9400
2 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@ void ThreadPool::set_use_threads(const bool value) {
int ThreadPool::get_thread_count() const {
return _thread_count;
}
void ThreadPool::set_thread_count(const bool value) {
void ThreadPool::set_thread_count(const int value) {
_thread_count = value;
_dirty = true;
}
@ -56,7 +56,7 @@ void ThreadPool::set_thread_count(const bool value) {
int ThreadPool::get_thread_fallback_count() const {
return _thread_fallback_count;
}
void ThreadPool::set_thread_fallback_count(const bool value) {
void ThreadPool::set_thread_fallback_count(const int value) {
_thread_fallback_count = value;
_dirty = true;
}
@ -64,7 +64,7 @@ void ThreadPool::set_thread_fallback_count(const bool value) {
float ThreadPool::get_max_work_per_frame_percent() const {
return _max_work_per_frame_percent;
}
void ThreadPool::set_max_work_per_frame_percent(const bool value) {
void ThreadPool::set_max_work_per_frame_percent(const float value) {
_max_work_per_frame_percent = value;
_dirty = true;
}
@ -72,7 +72,7 @@ void ThreadPool::set_max_work_per_frame_percent(const bool value) {
float ThreadPool::get_max_time_per_frame() const {
return _max_time_per_frame;
}
void ThreadPool::set_max_time_per_frame(const bool value) {
void ThreadPool::set_max_time_per_frame(const float value) {
_max_time_per_frame = value;
_dirty = true;
}

View File

@ -61,16 +61,16 @@ public:
void set_use_threads(const bool value);
int get_thread_count() const;
void set_thread_count(const bool value);
void set_thread_count(const int value);
int get_thread_fallback_count() const;
void set_thread_fallback_count(const bool value);
void set_thread_fallback_count(const int value);
float get_max_work_per_frame_percent() const;
void set_max_work_per_frame_percent(const bool value);
void set_max_work_per_frame_percent(const float value);
float get_max_time_per_frame() const;
void set_max_time_per_frame(const bool value);
void set_max_time_per_frame(const float value);
bool is_working() const;
bool is_working_no_lock() const;