Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Issue 2344153002: Made g_lazy_worker_pool leaky (Closed)

Created:
4 years, 3 months ago by heimbuef
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Made g_lazy_worker_pool leaky to enable tasks to start tasks. Since the WorkerPool has CONTINUE_ON_SHUTDOWN semantics, tasks are disallowed from using singletons, since these could get null while the task is still running. Because of that, it is impossible to start tasks from within a task. A leaky singleton on the other hand will never get null again and is allowed to be used from background threads, fixing the issue. BUG=648152 Committed: https://crrev.com/64e7172160ea40b922cc52259d6d2fe29a2b3882 Cr-Commit-Position: refs/heads/master@{#419705}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/threading/worker_pool_posix.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
heimbuef
PTAL
4 years, 3 months ago (2016-09-16 12:34:43 UTC) #4
jochen (gone - plz use gerrit)
You'll need to file an base/ OWNER - I'd recommend git blame'ing the file to ...
4 years, 3 months ago (2016-09-16 12:41:02 UTC) #5
heimbuef
Added mark@ because he's an owner. PTAL
4 years, 3 months ago (2016-09-16 13:16:12 UTC) #9
Mark Mentovai
Please follow Jochen’s other suggestions too.
4 years, 3 months ago (2016-09-16 14:20:00 UTC) #10
heimbuef
On 2016/09/16 14:20:00, Mark Mentovai wrote: > Please follow Jochen’s other suggestions too. Done.
4 years, 3 months ago (2016-09-19 08:24:26 UTC) #13
Mark Mentovai
LGTM. Wrap the commit message at 72 characters for maximum git-friendliness. Google for “git commit ...
4 years, 3 months ago (2016-09-19 15:09:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344153002/1
4 years, 3 months ago (2016-09-20 08:19:21 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-20 09:22:11 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 09:26:11 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/64e7172160ea40b922cc52259d6d2fe29a2b3882
Cr-Commit-Position: refs/heads/master@{#419705}

Powered by Google App Engine
This is Rietveld 408576698