diff options
author | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-10-22 18:19:23 +0000 |
---|---|---|
committer | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-10-22 18:19:23 +0000 |
commit | 14b43beb7ce4440b30dcea31196de5b4a529cb6b (patch) | |
tree | 7084ca9d70956417df0bd953736203704b88644e /webrtc/system_wrappers/source/thread.cc | |
parent | 24a419c0c755dea56933cd81fd88d2d334fd7565 (diff) | |
download | webrtc-14b43beb7ce4440b30dcea31196de5b4a529cb6b.tar.gz |
Move src/ -> webrtc/
TBR=niklas.enbom@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/915006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2963 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/system_wrappers/source/thread.cc')
-rw-r--r-- | webrtc/system_wrappers/source/thread.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/webrtc/system_wrappers/source/thread.cc b/webrtc/system_wrappers/source/thread.cc new file mode 100644 index 0000000000..32dcc63fb6 --- /dev/null +++ b/webrtc/system_wrappers/source/thread.cc @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + +#include "thread_wrapper.h" + +#if defined(_WIN32) + #include "thread_win.h" +#else + #include "thread_posix.h" +#endif + +namespace webrtc { +ThreadWrapper* ThreadWrapper::CreateThread(ThreadRunFunction func, + ThreadObj obj, ThreadPriority prio, + const char* threadName) +{ +#if defined(_WIN32) + return new ThreadWindows(func, obj, prio, threadName); +#else + return ThreadPosix::Create(func, obj, prio, threadName); +#endif +} +} // namespace webrtc |