Reformatted thread and static_instance.

BUG=
TEST=Trybots.

Review URL: https://webrtc-codereview.appspot.com/1006005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3324 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
phoglund@webrtc.org
2013-01-02 08:45:03 +00:00
parent a19d04e707
commit ec9c942e45
9 changed files with 534 additions and 589 deletions

View File

@ -8,23 +8,24 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "thread_wrapper.h"
#include "webrtc/system_wrappers/interface/thread_wrapper.h"
#if defined(_WIN32)
#include "thread_win.h"
#include "webrtc/system_wrappers/source/thread_win.h"
#else
#include "thread_posix.h"
#include "webrtc/system_wrappers/source/thread_posix.h"
#endif
namespace webrtc {
ThreadWrapper* ThreadWrapper::CreateThread(ThreadRunFunction func,
ThreadObj obj, ThreadPriority prio,
const char* threadName)
{
const char* thread_name) {
#if defined(_WIN32)
return new ThreadWindows(func, obj, prio, threadName);
return new ThreadWindows(func, obj, prio, thread_name);
#else
return ThreadPosix::Create(func, obj, prio, threadName);
return ThreadPosix::Create(func, obj, prio, thread_name);
#endif
}
} // namespace webrtc