AAX SDK 2.6.1
Avid Audio Extensions Development Kit
Loading...
Searching...
No Matches
AAX_CAutoreleasePool.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3
4 * Copyright 2014-2015, 2023 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * CONFIDENTIAL: this document contains confidential information of Avid. Do
8 * not disclose to any third party. Use of the information contained in this
9 * document is subject to an Avid SDK license.
10 *
11 */
12
18/*================================================================================================*/
19
20
21#pragma once
22
23#ifndef _AAX_CAUTORELEASEPOOL_H_
24#define _AAX_CAUTORELEASEPOOL_H_
25
26
27/* \brief Creates an autorelease pool for the scope of the stack based class
28 to clearn up any autoreleased memory that was allocated in the lifetime of
29 the pool.
30
31 \details
32 This may be used on either Mac or Windows platforms and will not pull in
33 any Cocoa dependencies.
34
35 usage:
36\code
37{
38 AAX_CAutoreleasePool myAutoReleasePool
39 delete myCocoaObject;
40
41 // Pool is released when the AAX_CAutoreleasePool is destroyed
42}
43\endcode
44 */
46{
47 public:
50
51 private:
54
55 private:
56 void* mAutoreleasePool;
57 };
58
59
60#endif // #ifndef _AAX_CAUTORELEASEPOOL_H_
Definition: AAX_CAutoreleasePool.h:46