зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1692629 - Add profiler idleness annotations for IPC I/O thread on Windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105092
This commit is contained in:
Родитель
57fa6fcce0
Коммит
9f4a859e20
|
@ -481,6 +481,7 @@ bool MessagePumpForIO::GetIOItem(DWORD timeout, IOItem* item) {
|
|||
memset(item, 0, sizeof(*item));
|
||||
ULONG_PTR key = 0;
|
||||
OVERLAPPED* overlapped = NULL;
|
||||
AUTO_PROFILER_LABEL("MessagePumpForIO::GetIOItem::Wait", IDLE);
|
||||
if (!GetQueuedCompletionStatus(port_.Get(), &item->bytes_transfered, &key,
|
||||
&overlapped, timeout)) {
|
||||
if (!overlapped) return false; // Nothing in the queue.
|
||||
|
|
Загрузка…
Ссылка в новой задаче