DescriptionSimplify ownership of a ThreadState's interruptors.
Have ThreadState assume ownership of interruptors registered with
addInterruptor(). That simplifies the handling on the caller side,
allowing them to register-and-forget rather than each having to
manually unregister & destruct their interruptor before shutting down.
(Not that this last step wasn't needed previously either, as ThreadState
would have destructed the interruptors upon its destruction.)
(ThreadState::removeInterruptor() is retained should it prove useful, but
currently unused.)
R=haraken
BUG=420515
Committed: https://crrev.com/4800e03bbc37af803129ee4f56d0d1b3153e13b3
git-svn-id: svn://svn.chromium.org/blink/trunk@199487 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Patch Set 1 #
Total comments: 2
Patch Set 2 : Switch addInterruptor() to take a PassOwnPtr<> #
Messages
Total messages: 10 (3 generated)
|