summaryrefslogtreecommitdiffstats
path: root/jingle/glue/thread_wrapper.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 23:28:59 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 23:28:59 +0000
commitdb567f2bfd128fad15e389356dd99eebda704823 (patch)
treedff13ed32a994920019d80064824cafa72f74c7a /jingle/glue/thread_wrapper.cc
parent59906589d90c082d91f268206eadaf6b71c1aad1 (diff)
downloadchromium_src-db567f2bfd128fad15e389356dd99eebda704823.zip
chromium_src-db567f2bfd128fad15e389356dd99eebda704823.tar.gz
chromium_src-db567f2bfd128fad15e389356dd99eebda704823.tar.bz2
Implement P2P Transport Dev using P2PTransportImpl.
BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/6823021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle/glue/thread_wrapper.cc')
-rw-r--r--jingle/glue/thread_wrapper.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/jingle/glue/thread_wrapper.cc b/jingle/glue/thread_wrapper.cc
index fe26094..979064b 100644
--- a/jingle/glue/thread_wrapper.cc
+++ b/jingle/glue/thread_wrapper.cc
@@ -30,6 +30,7 @@ JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop)
DCHECK_EQ(message_loop_, MessageLoop::current());
talk_base::ThreadManager::SetCurrent(this);
+ talk_base::MessageQueueManager::Instance()->Add(this);
message_loop_->AddDestructionObserver(this);
}
@@ -38,6 +39,7 @@ JingleThreadWrapper::~JingleThreadWrapper() {
void JingleThreadWrapper::WillDestroyCurrentMessageLoop() {
talk_base::ThreadManager::SetCurrent(NULL);
+ talk_base::MessageQueueManager::Instance()->Remove(this);
message_loop_->RemoveDestructionObserver(this);
delete this;
}