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

Side by Side Diff: src/debug.cc

Issue 6070009: Added labelled thread names to help with some debugging activity. Right now,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/d8-debug.h ('k') | src/debug-agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after
3030 } 3030 }
3031 3031
3032 3032
3033 void LockingCommandMessageQueue::Clear() { 3033 void LockingCommandMessageQueue::Clear() {
3034 ScopedLock sl(lock_); 3034 ScopedLock sl(lock_);
3035 queue_.Clear(); 3035 queue_.Clear();
3036 } 3036 }
3037 3037
3038 3038
3039 MessageDispatchHelperThread::MessageDispatchHelperThread() 3039 MessageDispatchHelperThread::MessageDispatchHelperThread()
3040 : sem_(OS::CreateSemaphore(0)), mutex_(OS::CreateMutex()), 3040 : Thread("v8:MsgDispHelpr"),
3041 sem_(OS::CreateSemaphore(0)), mutex_(OS::CreateMutex()),
3041 already_signalled_(false) { 3042 already_signalled_(false) {
3042 } 3043 }
3043 3044
3044 3045
3045 MessageDispatchHelperThread::~MessageDispatchHelperThread() { 3046 MessageDispatchHelperThread::~MessageDispatchHelperThread() {
3046 delete mutex_; 3047 delete mutex_;
3047 delete sem_; 3048 delete sem_;
3048 } 3049 }
3049 3050
3050 3051
(...skipping 19 matching lines...) Expand all
3070 { 3071 {
3071 Locker locker; 3072 Locker locker;
3072 Debugger::CallMessageDispatchHandler(); 3073 Debugger::CallMessageDispatchHandler();
3073 } 3074 }
3074 } 3075 }
3075 } 3076 }
3076 3077
3077 #endif // ENABLE_DEBUGGER_SUPPORT 3078 #endif // ENABLE_DEBUGGER_SUPPORT
3078 3079
3079 } } // namespace v8::internal 3080 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/d8-debug.h ('k') | src/debug-agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698