tree: 9f7e8167753daa94c7c4dbc114d40699258ee56f [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_nocompile.nc
  7. bind_post_task_unittest.cc
  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. job_perftest.cc
  24. lazy_thread_pool_task_runner.cc
  25. lazy_thread_pool_task_runner.h
  26. lazy_thread_pool_task_runner_unittest.cc
  27. post_job.cc
  28. post_job.h
  29. post_job_unittest.cc
  30. post_task_and_reply_with_result_internal.h
  31. README.md
  32. scoped_set_task_priority_for_current_thread.cc
  33. scoped_set_task_priority_for_current_thread.h
  34. scoped_set_task_priority_for_current_thread_unittest.cc
  35. sequenced_task_runner.cc
  36. sequenced_task_runner.h
  37. sequenced_task_runner_helpers.h
  38. sequenced_task_runner_unittest.cc
  39. single_thread_task_executor.cc
  40. single_thread_task_executor.h
  41. single_thread_task_executor_unittest.cc
  42. single_thread_task_runner.cc
  43. single_thread_task_runner.h
  44. single_thread_task_runner_thread_mode.h
  45. single_thread_task_runner_unittest.cc
  46. task_features.cc
  47. task_features.h
  48. task_observer.h
  49. task_runner.cc
  50. task_runner.h
  51. task_runner_unittest.cc
  52. task_traits.cc
  53. task_traits.h
  54. task_traits_nocompile.nc
  55. task_traits_unittest.cc
  56. thread_pool.cc
  57. thread_pool.h
  58. thread_pool_unittest.cc
  59. 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: