⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269156 in webkit


Ignore:
Timestamp:
Oct 29, 2020, 11:10:27 AM (6 years ago)
Author:
youenn@apple.com
Message:

Add some logging to SequenceCheckerImpl::IsCurrent
https://bugs.webkit.org/show_bug.cgi?id=218328

Reviewed by Eric Carlson.

  • Source/webrtc/rtc_base/synchronization/sequence_checker.cc:

This might help debugging https://bugs.webkit.org/show_bug.cgi?id=218063.

Location:
trunk/Source/ThirdParty/libwebrtc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r269147 r269156  
     12020-10-29  Youenn Fablet  <youenn@apple.com>
     2
     3        Add some logging to SequenceCheckerImpl::IsCurrent
     4        https://bugs.webkit.org/show_bug.cgi?id=218328
     5
     6        Reviewed by Eric Carlson.
     7
     8        * Source/webrtc/rtc_base/synchronization/sequence_checker.cc:
     9        This might help debugging https://bugs.webkit.org/show_bug.cgi?id=218063.
     10
    1112020-10-29  Youenn Fablet  <youenn@apple.com>
    212
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/synchronization/sequence_checker.cc

    r252473 r269156  
    99 */
    1010#include "rtc_base/synchronization/sequence_checker.h"
     11
     12#include "rtc_base/logging.h"
    1113
    1214#if defined(WEBRTC_MAC)
     
    4850  }
    4951  if (valid_queue_ || current_queue) {
     52    if (valid_queue_ != current_queue)
     53      RTC_LOG(LS_ERROR) << "SequenceCheckerImpl queue check is failing";
    5054    return valid_queue_ == current_queue;
    5155  }
    5256  if (valid_system_queue_ && valid_system_queue_ == current_system_queue) {
     57    if (valid_queue_ != current_queue)
     58      RTC_LOG(LS_ERROR) << "SequenceCheckerImpl system queue check is failing";
    5359    return true;
    5460  }
    55   return rtc::IsThreadRefEqual(valid_thread_, current_thread);
     61  auto result = rtc::IsThreadRefEqual(valid_thread_, current_thread);
     62  if (!result)
     63    RTC_LOG(LS_ERROR) << "SequenceCheckerImpl thread check is failing";
     64  return result;
    5665}
    5766
Note: See TracChangeset for help on using the changeset viewer.