OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 | 152 |
153 v8::Isolate* m_isolate; | 153 v8::Isolate* m_isolate; |
154 OwnPtr<V8IsolateInterruptor> m_interruptor; | 154 OwnPtr<V8IsolateInterruptor> m_interruptor; |
155 | 155 |
156 // Used to signal thread shutdown. | 156 // Used to signal thread shutdown. |
157 OwnPtr<WebWaitableEvent> m_shutdownEvent; | 157 OwnPtr<WebWaitableEvent> m_shutdownEvent; |
158 | 158 |
159 // Used to signal thread termination. | 159 // Used to signal thread termination. |
160 OwnPtr<WebWaitableEvent> m_terminationEvent; | 160 OwnPtr<WebWaitableEvent> m_terminationEvent; |
161 | 161 |
162 WebThreadSupportingGC* m_thread; | |
163 | |
162 // FIXME: This has to be last because of crbug.com/401397 - the | 164 // FIXME: This has to be last because of crbug.com/401397 - the |
163 // WorkerThread might get deleted before it had a chance to properly | 165 // WorkerThread might get deleted before it had a chance to properly |
164 // shut down. By deleting the WebThread first, we can guarantee that | 166 // shut down. By deleting the WebThread first, we can guarantee that |
165 // no pending tasks on the thread might want to access any of the other | 167 // no pending tasks on the thread might want to access any of the other |
166 // members during the WorkerThread's destruction. | 168 // members during the WorkerThread's destruction. |
167 OwnPtr<WebThreadSupportingGC> m_thread; | 169 OwnPtr<WebThreadSupportingGC> m_ownThread; |
kinuko
2015/04/27 06:02:58
The relationship between m_thread and m_ownThread
sadrul
2015/04/27 07:05:29
The idea is that for compositor workers, there wil
| |
168 }; | 170 }; |
169 | 171 |
170 } // namespace blink | 172 } // namespace blink |
171 | 173 |
172 #endif // WorkerThread_h | 174 #endif // WorkerThread_h |
OLD | NEW |