about summary refs log tree commit diff
path: root/src/libstd/sys/windows
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2015-01-27 03:38:07 +0100
committerVojtech Kral <vojtech@kral.hk>2015-01-27 03:41:49 +0100
commitec4981ece86769c768d61a914093a7a39192522c (patch)
treee9afe09961dc83f92a2f03be21ade1ea844e4d58 /src/libstd/sys/windows
parenta637365b10c175e23af40171af1724d5474cb303 (diff)
downloadrust-ec4981ece86769c768d61a914093a7a39192522c.tar.gz
rust-ec4981ece86769c768d61a914093a7a39192522c.zip
Thread native name setting, fix #10302
Diffstat (limited to 'src/libstd/sys/windows')
-rw-r--r--src/libstd/sys/windows/thread.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/thread.rs b/src/libstd/sys/windows/thread.rs
index 30707488b30..b6027ea2e7e 100644
--- a/src/libstd/sys/windows/thread.rs
+++ b/src/libstd/sys/windows/thread.rs
@@ -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);