Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: third_party/libjingle/overrides/talk/base/thread.cc

Issue 9455070: Remove the dependency to ws2_32.dll from talk_base::ThreadManager and talk_base::Thread. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libjingle/overrides/talk/base/thread.cc
===================================================================
--- third_party/libjingle/overrides/talk/base/thread.cc (revision 124023)
+++ third_party/libjingle/overrides/talk/base/thread.cc (working copy)
@@ -85,7 +85,6 @@
#ifdef WIN32
ThreadManager::ThreadManager() {
key_ = TlsAlloc();
- WrapCurrentThread();
}
ThreadManager::~ThreadManager() {
@@ -126,16 +125,24 @@
Runnable* runnable;
};
+Thread::Thread() {
+ Construct();
+}
+
Thread::Thread(SocketServer* ss)
- : MessageQueue(ss),
- priority_(PRIORITY_NORMAL),
- started_(false),
- has_sends_(false),
+ : MessageQueue(ss) {
+ Construct();
+}
+
+void Thread::Construct() {
+ priority_ = PRIORITY_NORMAL;
+ started_ = false;
+ has_sends_ = false;
#if defined(WIN32)
- thread_(NULL),
+ thread_ = NULL;
#endif
- owned_(true),
- delete_self_when_complete_(false) {
+ owned_ = true;
+ delete_self_when_complete_ = false;
SetName("Thread", this); // default name
}

Powered by Google App Engine
This is Rietveld 408576698