Add support for thread/WorkQueue QoS
https://bugs.webkit.org/show_bug.cgi?id=130688

Reviewed by Anders Carlson & Simon Fraser.


Source/WebCore: 
WebCore's ScrollingThread should be UserInteractive.

* page/scrolling/ScrollingThread.cpp:
(WebCore::ScrollingThread::threadCallback):
    - ScrollingThread should be UserInteractive

Source/WebKit2: 
The EventDispatcher's WorkQueue should be UserInteractive.

* Platform/WorkQueue.cpp:
(WorkQueue::create):
    - pass QOS to constructor.
(WorkQueue::WorkQueue):
    - pass QOS to platformInitialize.
* Platform/WorkQueue.h:
    - added enum, arguments.
* Platform/efl/WorkQueueEfl.cpp:
(WorkQueue::platformInitialize):
    - has extra argument.
* Platform/gtk/WorkQueueGtk.cpp:
(WorkQueue::platformInitialize):
    - has extra argument.
* Platform/mac/WorkQueueMac.cpp:
(platformQOS):
    - map from enum to platform type.
(WorkQueue::platformInitialize):
    - set the QoS of the dispatch queue.
* WebProcess/WebPage/EventDispatcher.cpp:
(WebKit::EventDispatcher::EventDispatcher):
    - EventDispatcher's WorkQueue should be UserInteractive.
* config.h:
    - added HAVE_QOS_CLASSES

Source/WTF: 
Add the ability to mark threads as UserInteractive.

* wtf/Threading.cpp:
(WTF::setCurrentThreadIsUserInteractive):
    - added method to set QoS of current thread to UserInteractive.
* wtf/Threading.h:
    - added declaration.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Win] Avoid fork bomb during build
https://bugs.webkit.org/show_bug.cgi?id=133837
<rdar://problem/17296034>

Reviewed by Tim Horton.


../JavaScriptCore: 
* JavaScriptCore.vcxproj/build-generated-files.sh: Use a
reasonable default value when the 'num-cpus' script is not available.

../WebCore: 
* WebCore.vcxproj/build-generated-files.sh: Use a reasonable
default value when the 'num-cpus' script is not available.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169927 268f45cc-cd09-0410-ab3c-d52691b4dbfc