From e9723efd34a3edc018cf48519b3753890fd3aebf Mon Sep 17 00:00:00 2001 From: Lucy Date: Wed, 15 Sep 2021 21:48:04 -0300 Subject: Allow for platform Thread implementation override --- core/os/thread.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/os/thread.cpp') diff --git a/core/os/thread.cpp b/core/os/thread.cpp index 73e31bdb3d..92e43963d2 100644 --- a/core/os/thread.cpp +++ b/core/os/thread.cpp @@ -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/object/script_language.h" @@ -126,3 +130,4 @@ Thread::~Thread() { } #endif +#endif // PLATFORM_CUSTOM_THREAD_H -- cgit v1.2.3