Flutter Engine
The Flutter Engine
scoped_nsautorelease_pool.h
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#ifndef FLUTTER_FML_PLATFORM_DARWIN_SCOPED_NSAUTORELEASE_POOL_H_
6#define FLUTTER_FML_PLATFORM_DARWIN_SCOPED_NSAUTORELEASE_POOL_H_
7
8#include "flutter/fml/macros.h"
9
10namespace fml {
11
12// Pushes an autorelease pool when constructed and pops it when destructed.
14 public:
17
18 private:
19 void* autorelease_pool_;
20
21 FML_DISALLOW_COPY_AND_ASSIGN(ScopedNSAutoreleasePool);
22};
23
24} // namespace fml
25
26#endif // FLUTTER_FML_PLATFORM_DARWIN_SCOPED_NSAUTORELEASE_POOL_H_
Definition: ascii_trie.cc:9