/* * Copyright (c) 2022, Andrew Kaster * Copyright (c) 2024, Shannon Booth * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::HTML { class NavigatorConcurrentHardwareMixin { public: // https://html.spec.whatwg.org/multipage/workers.html#dom-navigator-hardwareconcurrency static WebIDL::UnsignedLongLong hardware_concurrency() { return Core::System::hardware_concurrency(); } }; }