Flutter Engine
Loading...
Searching...
No Matches
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
10
namespace
fml
{
11
12
// Pushes an autorelease pool when constructed and pops it when destructed.
13
class
ScopedNSAutoreleasePool
{
14
public
:
15
ScopedNSAutoreleasePool
();
16
~ScopedNSAutoreleasePool
();
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_
fml::ScopedNSAutoreleasePool
Definition
scoped_nsautorelease_pool.h:13
fml::ScopedNSAutoreleasePool::ScopedNSAutoreleasePool
ScopedNSAutoreleasePool()
Definition
scoped_nsautorelease_pool.cc:16
fml::ScopedNSAutoreleasePool::~ScopedNSAutoreleasePool
~ScopedNSAutoreleasePool()
Definition
scoped_nsautorelease_pool.cc:21
macros.h
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
fml
Definition
ascii_trie.cc:9
fml
platform
darwin
scoped_nsautorelease_pool.h
Generated on Thu Nov 6 2025 16:11:22 for Flutter Engine by
1.9.8