mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
This reduces the number of compilation jobs when System.h changes from about 750 to 60. (There are still a large number of linker jobs.)
19 lines
508 B
C++
19 lines
508 B
C++
/*
|
|
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibCore/System.h>
|
|
#include <LibWeb/HTML/NavigatorConcurrentHardware.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
// https://html.spec.whatwg.org/multipage/workers.html#dom-navigator-hardwareconcurrency
|
|
WebIDL::UnsignedLongLong NavigatorConcurrentHardwareMixin::hardware_concurrency()
|
|
{
|
|
return Core::System::hardware_concurrency();
|
|
}
|
|
|
|
}
|