Use BlockPtr::fromCallable in WorkQueue::dispatch and WorkQueue::dispatchAfter
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Sep 2016 22:45:52 +0000 (22:45 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Sep 2016 22:45:52 +0000 (22:45 +0000)
commitd93390a0f9fa493460e0f214853b38e838c8c574
tree0837cbc23513f4aa675af751ce5975d962a8210b
parentc42532815cbb2d10df4c39c91178276011a9c74b
Use BlockPtr::fromCallable in WorkQueue::dispatch and WorkQueue::dispatchAfter
https://bugs.webkit.org/show_bug.cgi?id=161512

Reviewed by Chris Dumez.

This lets us get rid of leakCallable and adoptCallable.

* wtf/BlockPtr.h:
* wtf/Function.h:
* wtf/cocoa/WorkQueueCocoa.cpp:
(WTF::WorkQueue::dispatch):
(WTF::WorkQueue::dispatchAfter):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/BlockPtr.h
Source/WTF/wtf/Function.h
Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp