WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority
authorDavid Ludwig <dludwig@pobox.com>
Tue, 20 Aug 2013 22:16:09 -0400
changeset 8487 3c1f0d357a1a
parent 8486 ba33d06f80cd
child 8488 bb48911cd9c8
WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority
src/thread/stdcpp/SDL_systhread.cpp
--- a/src/thread/stdcpp/SDL_systhread.cpp	Tue Aug 20 22:04:09 2013 -0400
+++ b/src/thread/stdcpp/SDL_systhread.cpp	Tue Aug 20 22:16:09 2013 -0400
@@ -99,6 +99,14 @@
     // interface, at least as of this writing (Nov 2012).  std::thread does
     // provide access to the OS' native handle, however, and some form of
     // priority-setting could, in theory, be done through this interface.
+    //
+    // WinRT: UPDATE (Aug 20, 2013): thread priorities cannot be changed
+    // on WinRT, at least not for any thread that's already been created.
+    // WinRT threads appear to be based off of the WinRT class,
+    // ThreadPool, more info on which can be found at:
+    // http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.threading.threadpool.aspx
+    //
+    // For compatibility sake, 0 will be returned here.
     return (0);
 }