]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/windows/thread.rs
Thread native name setting, fix #10302
[rust.git] / src / libstd / sys / windows / thread.rs
index 30707488b30ee9e7535535ab930705a260f85cbd..b6027ea2e7e8e42b1942b6b235b85cf69c6e5ca6 100644 (file)
@@ -67,6 +67,13 @@ pub unsafe fn create(stack: uint, p: Thunk) -> rust_thread {
     return ret;
 }
 
+pub unsafe fn set_name(name: &str) {
+    // Windows threads are nameless
+    // The names in MSVC debugger are obtained using a "magic" exception,
+    // which requires a use of C++ macros.
+    // See https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
+}
+
 pub unsafe fn join(native: rust_thread) {
     use libc::consts::os::extra::INFINITE;
     WaitForSingleObject(native, INFINITE);