Replace Thread::Invoke with Thread::BlockingCall
BlockingCall doesn't take rtc::Location parameter and thus most of the dependencies on location can be removed Bug: webrtc:11318 Change-Id: I91a17e342dd9a9e3e2c8f7fbe267474c98a8d0e5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/274620 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38045}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
b190ca9e70
commit
9e09a1f327
@ -516,7 +516,7 @@ static ScopedJavaLocalRef<jobject> JNI_PeerConnection_GetLocalDescription(
|
||||
// must do this odd dance.
|
||||
std::string sdp;
|
||||
std::string type;
|
||||
pc->signaling_thread()->Invoke<void>(RTC_FROM_HERE, [pc, &sdp, &type] {
|
||||
pc->signaling_thread()->BlockingCall([pc, &sdp, &type] {
|
||||
const SessionDescriptionInterface* desc = pc->local_description();
|
||||
if (desc) {
|
||||
RTC_CHECK(desc->ToString(&sdp)) << "got so far: " << sdp;
|
||||
@ -535,7 +535,7 @@ static ScopedJavaLocalRef<jobject> JNI_PeerConnection_GetRemoteDescription(
|
||||
// must do this odd dance.
|
||||
std::string sdp;
|
||||
std::string type;
|
||||
pc->signaling_thread()->Invoke<void>(RTC_FROM_HERE, [pc, &sdp, &type] {
|
||||
pc->signaling_thread()->BlockingCall([pc, &sdp, &type] {
|
||||
const SessionDescriptionInterface* desc = pc->remote_description();
|
||||
if (desc) {
|
||||
RTC_CHECK(desc->ToString(&sdp)) << "got so far: " << sdp;
|
||||
|
Reference in New Issue
Block a user