Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
concurrent_message_loop_factory.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/fml/concurrent_message_loop.h"
6
7namespace fml {
8
9std::shared_ptr<ConcurrentMessageLoop> ConcurrentMessageLoop::Create(
10 size_t worker_count) {
11 return std::shared_ptr<ConcurrentMessageLoop>{
12 new ConcurrentMessageLoop(worker_count)};
13}
14
15} // namespace fml
static std::shared_ptr< ConcurrentMessageLoop > Create(size_t worker_count=std::thread::hardware_concurrency())