summaryrefslogtreecommitdiff
path: root/platform/uwp/thread_uwp.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-11-02 19:22:49 -0200
committerGeorge Marques <george@gmarqu.es>2016-11-03 14:51:08 -0200
commit411faaa6f478f837aa40893eaadf67e2b5d57cec (patch)
treed75d928bb9d244edd7b33f04c8ad31e840802bfe /platform/uwp/thread_uwp.cpp
parentb113c7b7a3e63581ae268b0ae7f827d55e381b82 (diff)
Rename remaining WinRT references to UWP
Diffstat (limited to 'platform/uwp/thread_uwp.cpp')
-rw-r--r--platform/uwp/thread_uwp.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/platform/uwp/thread_uwp.cpp b/platform/uwp/thread_uwp.cpp
index 5f7d1ca24b..a5a0920df6 100644
--- a/platform/uwp/thread_uwp.cpp
+++ b/platform/uwp/thread_uwp.cpp
@@ -30,9 +30,9 @@
#include "os/memory.h"
-Thread* ThreadWinrt::create_func_winrt(ThreadCreateCallback p_callback,void *p_user,const Settings&) {
+Thread* ThreadUWP::create_func_uwp(ThreadCreateCallback p_callback,void *p_user,const Settings&) {
- ThreadWinrt* thread = memnew(ThreadWinrt);
+ ThreadUWP* thread = memnew(ThreadUWP);
std::thread new_thread(p_callback, p_user);
@@ -41,34 +41,34 @@ Thread* ThreadWinrt::create_func_winrt(ThreadCreateCallback p_callback,void *p_u
return thread;
};
-Thread::ID ThreadWinrt::get_thread_ID_func_winrt() {
+Thread::ID ThreadUWP::get_thread_ID_func_uwp() {
return std::hash<std::thread::id>()(std::this_thread::get_id());
};
-void ThreadWinrt::wait_to_finish_func_winrt(Thread* p_thread) {
+void ThreadUWP::wait_to_finish_func_uwp(Thread* p_thread) {
- ThreadWinrt *tp=static_cast<ThreadWinrt*>(p_thread);
+ ThreadUWP *tp=static_cast<ThreadUWP*>(p_thread);
tp->thread.join();
};
-Thread::ID ThreadWinrt::get_ID() const {
+Thread::ID ThreadUWP::get_ID() const {
return std::hash<std::thread::id>()(thread.get_id());
};
-void ThreadWinrt::make_default() {
- create_func = create_func_winrt;
- get_thread_ID_func = get_thread_ID_func_winrt;
- wait_to_finish_func = wait_to_finish_func_winrt;
+void ThreadUWP::make_default() {
+ create_func = create_func_uwp;
+ get_thread_ID_func = get_thread_ID_func_uwp;
+ wait_to_finish_func = wait_to_finish_func_uwp;
};
-ThreadWinrt::ThreadWinrt() {
+ThreadUWP::ThreadUWP() {
};
-ThreadWinrt::~ThreadWinrt() {
+ThreadUWP::~ThreadUWP() {
};