Skip to content

Commit

Permalink
Add GlobalFactory::GetSignalingThread()
Browse files Browse the repository at this point in the history
  • Loading branch information
djee-ms committed May 31, 2020
1 parent d980a76 commit 081e90c
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 235 deletions.
10 changes: 10 additions & 0 deletions libs/mrwebrtc/src/interop/global_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ GlobalFactory::GetPeerConnectionFactory() noexcept {
return peer_factory_;
}

rtc::Thread* GlobalFactory::GetSignalingThread() const noexcept {
// This only requires init_mutex_ read lock, which must be acquired to access
// the singleton instance.
#if defined(WINUWP)
return impl_->signalingThread.get();
#else // defined(WINUWP)
return signaling_thread_.get();
#endif // defined(WINUWP)
}

rtc::Thread* GlobalFactory::GetWorkerThread() const noexcept {
// This only requires init_mutex_ read lock, which must be acquired to access
// the singleton instance.
Expand Down
Loading

0 comments on commit 081e90c

Please sign in to comment.