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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 bool WorkerThread::isCurrentThread() | 381 bool WorkerThread::isCurrentThread() |
382 { | 382 { |
383 return m_started && backingThread().isCurrentThread(); | 383 return m_started && backingThread().isCurrentThread(); |
384 } | 384 } |
385 | 385 |
386 void WorkerThread::postTask(const WebTraceLocation& location, PassOwnPtr<Executi
onContextTask> task) | 386 void WorkerThread::postTask(const WebTraceLocation& location, PassOwnPtr<Executi
onContextTask> task) |
387 { | 387 { |
388 backingThread().postTask(location, createWorkerThreadTask(task, true)); | 388 backingThread().postTask(location, createWorkerThreadTask(task, true)); |
389 } | 389 } |
390 | 390 |
391 void WorkerThread::postDelayedTask(const WebTraceLocation& location, PassOwnPtr<
ExecutionContextTask> task, long long delayMs) | |
392 { | |
393 backingThread().postDelayedTask(location, createWorkerThreadTask(task, true)
, delayMs); | |
394 } | |
395 | |
396 void WorkerThread::initializeBackingThread() | 391 void WorkerThread::initializeBackingThread() |
397 { | 392 { |
398 ASSERT(isCurrentThread()); | 393 ASSERT(isCurrentThread()); |
399 backingThread().initialize(); | 394 backingThread().initialize(); |
400 } | 395 } |
401 | 396 |
402 void WorkerThread::shutdownBackingThread() | 397 void WorkerThread::shutdownBackingThread() |
403 { | 398 { |
404 ASSERT(isCurrentThread()); | 399 ASSERT(isCurrentThread()); |
405 backingThread().shutdown(); | 400 backingThread().shutdown(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 } while (task && m_pausedInDebugger); | 493 } while (task && m_pausedInDebugger); |
499 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); | 494 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); |
500 } | 495 } |
501 | 496 |
502 void WorkerThread::stopRunningDebuggerTasksOnPause() | 497 void WorkerThread::stopRunningDebuggerTasksOnPause() |
503 { | 498 { |
504 m_pausedInDebugger = false; | 499 m_pausedInDebugger = false; |
505 } | 500 } |
506 | 501 |
507 } // namespace blink | 502 } // namespace blink |
OLD | NEW |