tree: 03251f515fafbf38c06f2ad9e854e11b87c1054e [path history] [tgz]
  1. common/
  2. sequence_manager/
  3. thread_pool/
  4. bind_post_task.h
  5. bind_post_task_internal.h
  6. bind_post_task_unittest.cc
  7. bind_post_task_unittest.nc
  8. cancelable_task_tracker.cc
  9. cancelable_task_tracker.h
  10. cancelable_task_tracker_unittest.cc
  11. current_thread.cc
  12. current_thread.h
  13. default_delayed_task_handle_delegate.cc
  14. default_delayed_task_handle_delegate.h
  15. default_delayed_task_handle_delegate_unittest.cc
  16. deferred_sequenced_task_runner.cc
  17. deferred_sequenced_task_runner.h
  18. deferred_sequenced_task_runner_unittest.cc
  19. delay_policy.h
  20. delayed_task_handle.cc
  21. delayed_task_handle.h
  22. delayed_task_handle_unittest.cc
  23. DIR_METADATA
  24. job_perftest.cc
  25. lazy_thread_pool_task_runner.cc
  26. lazy_thread_pool_task_runner.h
  27. lazy_thread_pool_task_runner_unittest.cc
  28. OWNERS
  29. post_job.cc
  30. post_job.h
  31. post_job_unittest.cc
  32. post_task.cc
  33. post_task.h
  34. post_task_and_reply_with_result_internal.h
  35. post_task_unittest.cc
  36. README.md
  37. scoped_set_task_priority_for_current_thread.cc
  38. scoped_set_task_priority_for_current_thread.h
  39. scoped_set_task_priority_for_current_thread_unittest.cc
  40. sequenced_task_runner.cc
  41. sequenced_task_runner.h
  42. sequenced_task_runner_helpers.h
  43. sequenced_task_runner_unittest.cc
  44. simple_task_executor.cc
  45. simple_task_executor.h
  46. single_thread_task_executor.cc
  47. single_thread_task_executor.h
  48. single_thread_task_executor_unittest.cc
  49. single_thread_task_runner.h
  50. single_thread_task_runner_thread_mode.h
  51. task_executor.cc
  52. task_executor.h
  53. task_features.cc
  54. task_features.h
  55. task_observer.h
  56. task_runner.cc
  57. task_runner.h
  58. task_runner_unittest.cc
  59. task_runner_util.h
  60. task_runner_util_unittest.cc
  61. task_traits.cc
  62. task_traits.h
  63. task_traits_extension.h
  64. task_traits_extension_unittest.cc
  65. task_traits_extension_unittest.nc
  66. task_traits_unittest.cc
  67. task_traits_unittest.nc
  68. test_task_traits_extension.cc
  69. test_task_traits_extension.h
  70. thread_pool.cc
  71. thread_pool.h
  72. thread_pool_unittest.cc
  73. updateable_sequenced_task_runner.h
base/task/README.md

This directory has the following layout:

  • base/task/: public APIs for posting tasks and managing task queues.
  • base/task/thread_pool/: implementation of the ThreadPool.
  • base/task/sequence_manager/: implementation of the SequenceManager.
  • base/task/common/: implementation details shared by ThreadPool and SequenceManager.

Apart from embedders explicitly managing a ThreadPoolInstance and/or SequenceManager instance(s) for their process/threads, the vast majority of users should only need APIs in base/task/.

Documentation: