mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Instead, keep it around to service more requests. There may be a race between runner shutdown and request for new applications.
27 lines
689 B
C++
27 lines
689 B
C++
// Copyright 2018 The Fuchsia Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include <trace-provider/provider.h>
|
|
#include <cstdlib>
|
|
|
|
#include "application_runner.h"
|
|
#include "lib/fsl/tasks/message_loop.h"
|
|
|
|
int main(int argc, char const* argv[]) {
|
|
fsl::MessageLoop loop;
|
|
|
|
trace::TraceProvider provider(loop.async());
|
|
FXL_DCHECK(provider.is_valid()) << "Trace provider must be valid.";
|
|
|
|
FXL_DLOG(INFO) << "Flutter application services initialized.";
|
|
|
|
flutter::ApplicationRunner runner;
|
|
|
|
loop.Run();
|
|
|
|
FXL_DLOG(INFO) << "Flutter application services terminated.";
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|