Introduce PerThreadData class to avoid defining per-thread classes using DEFINE_THREAD_SAFE_STATIC_LOCAL |
|||||
Issue descriptionCopied from https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp On 2016/11/08 07:11:36, haraken wrote: > > nhiroki@: We might want to consider introducing a PerThreadData class to avoid > defining per-thread classes like this with DEFINE_THREAD_SAFE_STATIC_LOCAL. > > Ideally, the caller should be able to get the BackgroundSyncProvider by > PerThreadData::current()->backgroundSyncProvider().
,
Nov 9 2016
I'd put it in platform/threading/. wtf/ will be merged into platform/ soon.
,
Nov 9 2016
Platform layer (used to) expose various per-thread interfaces for workers, have been thinking that having some collective per-thread interface for them would be nice. So +1 for doing this. I also think this should be at platform layer (platform/threading sounds good)
,
Nov 11 2016
,
Dec 8 2016
,
Jun 12 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by nhiroki@chromium.org
, Nov 9 2016