| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 class MessageDispatchHelperThread: public Thread { | 1034 class MessageDispatchHelperThread: public Thread { |
| 1035 public: | 1035 public: |
| 1036 explicit MessageDispatchHelperThread(Isolate* isolate); | 1036 explicit MessageDispatchHelperThread(Isolate* isolate); |
| 1037 ~MessageDispatchHelperThread(); | 1037 ~MessageDispatchHelperThread(); |
| 1038 | 1038 |
| 1039 void Schedule(); | 1039 void Schedule(); |
| 1040 | 1040 |
| 1041 private: | 1041 private: |
| 1042 void Run(); | 1042 void Run(); |
| 1043 | 1043 |
| 1044 Isolate* isolate_; |
| 1044 Semaphore* const sem_; | 1045 Semaphore* const sem_; |
| 1045 Mutex* const mutex_; | 1046 Mutex* const mutex_; |
| 1046 bool already_signalled_; | 1047 bool already_signalled_; |
| 1047 | 1048 |
| 1048 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1049 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
| 1049 }; | 1050 }; |
| 1050 | 1051 |
| 1051 | 1052 |
| 1052 } } // namespace v8::internal | 1053 } } // namespace v8::internal |
| 1053 | 1054 |
| 1054 #endif // ENABLE_DEBUGGER_SUPPORT | 1055 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1055 | 1056 |
| 1056 #endif // V8_DEBUG_H_ | 1057 #endif // V8_DEBUG_H_ |
| OLD | NEW |