Bug 197136 - [WTF] Move PAL::registerNotifyCallback to WTF
Summary: [WTF] Move PAL::registerNotifyCallback to WTF
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-20 01:12 PDT by Yusuke Suzuki
Modified: 2019-04-20 01:13 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2019-04-20 01:12:43 PDT
I found that notify_register_dispatch is used in WTF and JSC too. We should have one wrapper around notify_register_dispatch in WTF (PAL::registerNotifyCallback thing) and use it everywhere in WebKit.
It is nice since we can grep all the registrations with PAL::registerNotifyCallback.
Comment 1 Yusuke Suzuki 2019-04-20 01:13:37 PDT
I was adding a callback for my debugging purpose of memory thing, and I noticed that WTF uses notify_register_dispatch, while PAL has PAL::registerNotifyCallback.