Remove NO_THREADS fallback code, Godot 4 requires thread support
This also removes `OS::can_use_threads` from the public API since it's always true.
This commit is contained in:
parent
d331b803b8
commit
54418ea659
29 changed files with 13 additions and 561 deletions
|
|
@ -425,10 +425,6 @@ void OS::delay_msec(int p_msec) const {
|
|||
::OS::get_singleton()->delay_usec(int64_t(p_msec) * 1000);
|
||||
}
|
||||
|
||||
bool OS::can_use_threads() const {
|
||||
return ::OS::get_singleton()->can_use_threads();
|
||||
}
|
||||
|
||||
bool OS::is_userfs_persistent() const {
|
||||
return ::OS::get_singleton()->is_userfs_persistent();
|
||||
}
|
||||
|
|
@ -561,8 +557,6 @@ void OS::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("is_userfs_persistent"), &OS::is_userfs_persistent);
|
||||
ClassDB::bind_method(D_METHOD("is_stdout_verbose"), &OS::is_stdout_verbose);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("can_use_threads"), &OS::can_use_threads);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("is_debug_build"), &OS::is_debug_build);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_static_memory_usage"), &OS::get_static_memory_usage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue