Lines Matching defs:Thread

44 Thread* Thread::Current() {
78 Thread *ThreadManager::CurrentThread() {
79 return static_cast<Thread *>(pthread_getspecific(key_));
82 void ThreadManager::SetCurrentThread(Thread *thread) {
100 Thread *ThreadManager::CurrentThread() {
101 return static_cast<Thread *>(TlsGetValue(key_));
104 void ThreadManager::SetCurrentThread(Thread *thread) {
109 Thread *ThreadManager::WrapCurrentThread() {
110 Thread* result = CurrentThread();
112 result = new Thread();
119 Thread* t = CurrentThread();
127 Thread* thread;
131 Thread::ScopedDisallowBlockingCalls::ScopedDisallowBlockingCalls()
132 : thread_(Thread::Current()),
136 Thread::ScopedDisallowBlockingCalls::~ScopedDisallowBlockingCalls() {
141 Thread::Thread(SocketServer* ss)
150 SetName("Thread", this); // default name
153 Thread::~Thread() {
158 bool Thread::SleepMs(int milliseconds) {
179 bool Thread::SetName(const std::string& name, const void* obj) {
190 bool Thread::Start(Runnable* runnable) {
227 bool Thread::WrapCurrent() {
231 void Thread::UnwrapCurrent() {
245 void Thread::SafeWrapCurrent() {
249 void Thread::Join() {
271 bool Thread::SetAllowBlockingCalls(bool allow) {
279 void Thread::AssertBlockingIsAllowedOnCurrentThread() {
281 Thread* current = Thread::Current();
286 void* Thread::PreRun(void* pv) {
307 void Thread::Run() {
311 bool Thread::IsOwned() {
315 void Thread::Stop() {
320 void Thread::Send(MessageHandler* phandler, uint32_t id, MessageData* pdata) {
339 Thread *current_thread = Thread::Current();
385 void Thread::ReceiveSends() {
389 void Thread::ReceiveSendsFromThread(const Thread* source) {
393 // - thread receiving exits: Wakeup/set ready in Thread::Clear()
394 // - object target cleared: Wakeup/set ready in Thread::Clear()
410 bool Thread::PopSendMessageFromThread(const Thread* source, _SendMessage* msg) {
422 void Thread::InvokeBegin() {
423 TRACE_EVENT_BEGIN0("webrtc", "Thread::Invoke");
426 void Thread::InvokeEnd() {
427 TRACE_EVENT_END0("webrtc", "Thread::Invoke");
430 void Thread::Clear(MessageHandler* phandler,
459 bool Thread::ProcessMessages(int cmsLoop) {
488 bool Thread::WrapCurrentWithThreadManager(ThreadManager* thread_manager,
514 AutoThread::AutoThread(SocketServer* ss) : Thread(ss) {
532 Thread::Run();