mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add THREADS_ENABLED macro in order to compile Godot to run on the main thread
This commit is contained in:
parent
107f2961cc
commit
bd70b8e1f6
33 changed files with 447 additions and 72 deletions
|
|
@ -503,7 +503,9 @@ void HTTPRequest::_notification(int p_what) {
|
|||
|
||||
void HTTPRequest::set_use_threads(bool p_use) {
|
||||
ERR_FAIL_COND(get_http_client_status() != HTTPClient::STATUS_DISCONNECTED);
|
||||
#ifdef THREADS_ENABLED
|
||||
use_threads.set_to(p_use);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool HTTPRequest::is_using_threads() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue