diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/thread.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/setthreadname/test-setthreadname.cxx | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/sal/osl/w32/thread.cxx b/sal/osl/w32/thread.cxx index c10950e9151f..d4a9d6d67060 100644 --- a/sal/osl/w32/thread.cxx +++ b/sal/osl/w32/thread.cxx @@ -359,7 +359,6 @@ void SAL_CALL osl_yieldThread(void) } void SAL_CALL osl_setThreadName(char const * name) { -#ifdef _MSC_VER /* See <http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx>: */ #pragma pack(push, 8) struct { @@ -378,9 +377,6 @@ void SAL_CALL osl_setThreadName(char const * name) { 0x406D1388, 0, sizeof info / sizeof (ULONG_PTR), reinterpret_cast<ULONG_PTR *>(&info)); } __except (EXCEPTION_EXECUTE_HANDLER) {} -#else - (void) name; -#endif } namespace { diff --git a/sal/qa/osl/setthreadname/test-setthreadname.cxx b/sal/qa/osl/setthreadname/test-setthreadname.cxx index c0c884eea7ab..9af8793eb1c2 100644 --- a/sal/qa/osl/setthreadname/test-setthreadname.cxx +++ b/sal/qa/osl/setthreadname/test-setthreadname.cxx @@ -51,8 +51,7 @@ void TestThread::run() { setName("TestThread"); if (std::getenv("URE_TEST_SETTHREADNAME") != nullptr) { // On Linux, the thread name can now be observed with "ps -L"; on - // Windows with the Microsoft compiler, the thread name can now be - // observed in a debugger. + // Windows, the thread name can now be observed in a debugger. std::cout << "stop: "; std::cin.ignore(std::numeric_limits< int >::max(), '\n'); } |