diff options
Diffstat (limited to 'base/thread_task_runner_handle.h')
-rw-r--r-- | base/thread_task_runner_handle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/thread_task_runner_handle.h b/base/thread_task_runner_handle.h index 9a9dcfd..238435f 100644 --- a/base/thread_task_runner_handle.h +++ b/base/thread_task_runner_handle.h @@ -21,6 +21,10 @@ class BASE_EXPORT ThreadTaskRunnerHandle { // Gets the SingleThreadTaskRunner for the current thread. static scoped_refptr<SingleThreadTaskRunner> Get(); + // Returns true if the SingleThreadTaskRunner is already created for + // the current thread. + static bool IsSet(); + // Binds |task_runner| to the current thread. |task_runner| must belong // to the current thread for this to succeed. explicit ThreadTaskRunnerHandle( |