[ VM / Windows ] Removed call to SetThreadDescription which is only supported in new Win 10 builds

This (hopefully) unblocks the Dart SDK roll into Flutter.

Change-Id: I5616fb2ace879f3a0c4532706d472f2cb488267d
Reviewed-on: https://dart-review.googlesource.com/c/94347
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Ben Konyi 2019-02-26 01:00:26 +00:00 committed by commit-bot@chromium.org
parent bf7ecc40f9
commit f7e435ac26
2 changed files with 0 additions and 7 deletions

View file

@ -40,14 +40,10 @@ class ThreadStartData {
static unsigned int __stdcall ThreadEntry(void* data_ptr) {
ThreadStartData* data = reinterpret_cast<ThreadStartData*>(data_ptr);
const char* name = data->name();
Thread::ThreadStartFunction function = data->function();
uword parameter = data->parameter();
delete data;
// Set the thread name.
SetThreadDescription(GetCurrentThread(), reinterpret_cast<PCWSTR>(name));
// Call the supplied thread start function handing it its parameters.
function(parameter);

View file

@ -51,9 +51,6 @@ static unsigned int __stdcall ThreadEntry(void* data_ptr) {
uword parameter = data->parameter();
delete data;
// Set the thread name.
SetThreadDescription(GetCurrentThread(), reinterpret_cast<PCWSTR>(name));
// Create new OSThread object and set as TLS for new thread.
OSThread* thread = OSThread::CreateOSThread();
if (thread != NULL) {