Change RTC_CHECK to RTC_CHECK_EQ for improved printout of GetLastError.
TBR=olka@webrtc.org NOTRY=true Review-Url: https://codereview.webrtc.org/2061923004 Cr-Commit-Position: refs/heads/master@{#13134}
This commit is contained in:
parent
6806136aec
commit
8b06ec0b71
@ -62,7 +62,7 @@ TaskQueue::TaskQueue(const char* queue_name)
|
||||
TaskQueue::~TaskQueue() {
|
||||
RTC_DCHECK(!IsCurrent());
|
||||
while (!PostThreadMessage(thread_.GetThreadRef(), WM_QUIT, 0, 0)) {
|
||||
RTC_CHECK(ERROR_NOT_ENOUGH_QUOTA == ::GetLastError());
|
||||
RTC_CHECK_EQ(static_cast<DWORD>(ERROR_NOT_ENOUGH_QUOTA), ::GetLastError());
|
||||
Sleep(1);
|
||||
}
|
||||
thread_.Stop();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user