1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Allow for platform Thread implementation override

(cherry picked from commit e9723efd34)
This commit is contained in:
Lucy
2021-09-15 21:48:04 -03:00
committed by Rémi Verschelde
parent d29095027b
commit 83bbb527ad
2 changed files with 11 additions and 0 deletions

View File

@@ -28,6 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
// Define PLATFORM_CUSTOM_THREAD_H in platform_config.h
// Overriding the platform implementation is required in some proprietary platforms
#ifndef PLATFORM_CUSTOM_THREAD_H
#include "thread.h"
#include "core/script_language.h"
@@ -134,3 +138,4 @@ Thread::ID Thread::get_caller_id() {
}
}
#endif
#endif // PLATFORM_CUSTOM_THREAD_H

View File

@@ -28,6 +28,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
// Define PLATFORM_CUSTOM_THREAD_H in platform_config.h
// Overriding the platform implementation is required in some proprietary platforms
#ifdef PLATFORM_CUSTOM_THREAD_H
#include PLATFORM_CUSTOM_THREAD_H
#else
#ifndef THREAD_H
#define THREAD_H
@@ -114,3 +119,4 @@ public:
};
#endif // THREAD_H
#endif // PLATFORM_CUSTOM_THREAD_H