mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[ 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:
parent
bf7ecc40f9
commit
f7e435ac26
|
@ -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);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue