0
Commit Graph

14 Commits

Author SHA1 Message Date
Sean Maher
70f2942930 Task posting v3: many manual changes to continue handle refactors
This CL contains:
- removal of references to task runner handles in comments
- removal of nearly all calls, includes, and instantiations of
  thread and sequenced task runner handles

Each of these were replaced with references to the new api:
TaskRunner::CurrentDefaultHandle and associated methods.

After this change, all that should be left to do for this method
refactor is the deletion of the old API.

A few of the changes were done with a script, but they were manually
audited.

Bug: 1026641
Ax-Relnotes: n/a
Change-Id: I0858dccac95b485d982aa5152c6b461c4ce05aa4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4117257
Commit-Queue: Gabriel Charette <gab@chromium.org>
Owners-Override: Gabriel Charette <gab@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Sean Maher <spvw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1088971}
2023-01-04 22:15:06 +00:00
Gabriel Charette
9b6c0407ac [base] Cleanup remaining mentions of post_task.h
Bug: 1026641
Change-Id: I2bbd0822ad045651d10bd66ce81fe0fb99ff3de2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3565099
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
Owners-Override: Francois Pierre Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/main@{#988170}
2022-04-01 23:22:46 +00:00
Gabriel Charette
1f57c9b8ae Migrate remaining odd callers of base::PostTask/Create*TaskRunner in /docs
Most callers were already migrated via scripts, this is a split
of the remaining callers or comment-references that weren't caught
by those scripts.

@QA: This CL is a logical no-op.

This CL was uploaded by git cl split.

R=estaab@chromium.org

Bug: 1026641
Change-Id: Ie08915968b50da8c04cc9b206cc6a2beaec11901
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3531170
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Commit-Queue: Erik Staab <estaab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#981891}
2022-03-16 22:54:34 +00:00
Jared Saul
ea867ab3df Threading and tasks doc update; typo/etc. fixes
Change-Id: I733a44bf598192ffef193f9732e468147f146970
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3027543
Commit-Queue: Jared Saul <jsaul@google.com>
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#902021}
2021-07-15 17:39:01 +00:00
Gabriel Charette
798fde7bc9 [Browser/WebTaskEnvironment] Mass-migrate away from Test(Browser|Web)ThreadBundle
This is
 1) s/TestBrowserThreadBundle/BrowserTaskEnvironment/ on src/
 2) s/([^/])\b\w*thread_bundle(_)?/\1task_environment\2/ on files modified in (1)
 3) git cl format
 4) Manually fix up remainder "ThreadBundle" and "thread_bundle" found via
    string search on the whole of src/.

For ease of review:
 * Step  is the diff between patch sets 1..2
 * Step  is the diff between patch sets 2..3

TBR=dcheng@chromium.org
(for post-review owners bypass per mechanical change)

Bug: 992483
Change-Id: I4945141f6d78bdc6c98444198e5012ddc8e5bff0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758440
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688755}
2019-08-20 22:24:04 +00:00
Gabriel Charette
694c3c33ca [TaskEnvironment] Mass-migrate away from ScopedTaskEnvironment (1/2)
(well half of them because git cl upload wouldn't let me do
 them all at once...)

This is step  of the mass migration. Some of these will be
backported to SingleThreadTaskEnvironment in a later phase.

scoped_task_environment.h will also only move in a follow-up CL.

TBR=dcheng@chromium.org

Bug: 992483
Change-Id: I44bc376deee9b6c95bafac8d54165174d86a5001
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756247
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688086}
2019-08-19 14:53:05 +00:00
Sami Kyostila
831c60b09f docs: Remove "WithTraits" suffix from task posting documentation
Bug: 968047
Change-Id: Ibae113c025e4db430980c75932b8625657d096ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728564
Auto-Submit: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Alex Clarke <alexclarke@chromium.org>
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682692}
2019-07-31 13:31:23 +00:00
Francois Doray
571f85a9e6 Tasks FAQ: Does release of a TaskRunner block on posted tasks?
Adding answer to question asked at
https://groups.google.com/a/chromium.org/d/msg/scheduler-dev/Lzcyq8FpL_c/cNk4uKeFGAAJ
so that more people can find it.

TBR=gab@chromium.org

Change-Id: I3bd04d6fa9cb368288509002a78b98619715849d
Reviewed-on: https://chromium-review.googlesource.com/c/1448693
Reviewed-by: François Doray <fdoray@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628361}
2019-02-01 17:02:16 +00:00
Gabriel Charette
8917f4cc42 [Threading docs] Cross-reference FAQ and main docs
and follow-up on nits to https://chromium-review.googlesource.com/c/chromium/src/+/1261855

R=fdoray@chromium.org

Change-Id: I2ca5305af71fa89e13be10e40779641362529a42
Reviewed-on: https://chromium-review.googlesource.com/c/1342770
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610416}
2018-11-22 15:50:28 +00:00
Etienne Pierre-doray
d710e152dc [TaskScheduler]: Split section on blocking tasks in faq
Question on tasks blocking forever contains answer that applies to the general
case. This CL adds a new question that answer the general case:
How to make a blocking call without affecting other tasks?

The question:
How to make a blocking call that may never return without affecting other tasks?
references the general case and confirms that it also works in that case.

Change-Id: I2237853301b946c661fcdc623188e26877633404
Reviewed-on: https://chromium-review.googlesource.com/c/1300033
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603109}
2018-10-26 16:22:23 +00:00
Etienne Pierre-doray
338d61c13d Reland "[TaskScheduler]: Add section to faq: when to annotate with ScopedBlockingCall."
This is a reland of 8aeb9cc962

Original change's description:
> [TaskScheduler]: Add section to faq: when to annotate with ScopedBlockingCall.
> 
> Developpers are often wondering whether or not ScopedBlockingCall is redundant.
> 
> Change-Id: Ic7936ef805f43f7fc02d0ad3020c31d8364b099d
> Reviewed-on: https://chromium-review.googlesource.com/c/1271878
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Reviewed-by: François Doray <fdoray@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599626}

Change-Id: I0850821994e3b4a1b0c3bb238725bc28867d18f5
Reviewed-on: https://chromium-review.googlesource.com/c/1280281
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599952}
2018-10-16 12:35:32 +00:00
Etienne Pierre-Doray
460be2104d Revert "[TaskScheduler]: Add section to faq: when to annotate with ScopedBlockingCall."
This reverts commit 8aeb9cc962.

Reason for revert: Formatting error

Original change's description:
> [TaskScheduler]: Add section to faq: when to annotate with ScopedBlockingCall.
> 
> Developpers are often wondering whether or not ScopedBlockingCall is redundant.
> 
> Change-Id: Ic7936ef805f43f7fc02d0ad3020c31d8364b099d
> Reviewed-on: https://chromium-review.googlesource.com/c/1271878
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Reviewed-by: François Doray <fdoray@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#599626}

TBR=gab@chromium.org,fdoray@chromium.org,etiennep@chromium.org

Change-Id: I3a78aedaa9f5807826c9c36447769b7c11b0bbaa
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/1280765
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599630}
2018-10-15 14:10:13 +00:00
Etienne Pierre-doray
8aeb9cc962 [TaskScheduler]: Add section to faq: when to annotate with ScopedBlockingCall.
Developpers are often wondering whether or not ScopedBlockingCall is redundant.

Change-Id: Ic7936ef805f43f7fc02d0ad3020c31d8364b099d
Reviewed-on: https://chromium-review.googlesource.com/c/1271878
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599626}
2018-10-15 13:54:31 +00:00
Francois Doray
cc49b74d02 TaskScheduler: Add threading and tasks FAQ.
Every time we answer a question from a developer, we should add the
answer to this documentation file.

TBR=gab@chromium.org

Change-Id: Ic8331b3594b26c65f791666aa771c9d1c97abdd2
Reviewed-on: https://chromium-review.googlesource.com/c/1261855
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597898}
2018-10-09 13:49:09 +00:00