![]() |
Vault
4.1
|
VAutoreleasePool currently is defined to support memory management in Cocoa applications. More...
#include <vtypes.h>
Public Member Functions | |
VAutoreleasePool () | |
This is where we implement all of the Objective-C++ code that we rely on. | |
void | drain () |
VAutoreleasePool currently is defined to support memory management in Cocoa applications.
It is a no-op on other platforms. We declare an autorelease pool in VThread mains and in unit tests to provide a proper autorelease environment for objects allocated in those contexts. The constructor creates the pool and the destructor drains it. If appropriate, you can drain the pool each time through a loop, while keeping the pool itself around for a longer lifecycle.
VAutoreleasePool::VAutoreleasePool | ( | ) |
This is where we implement all of the Objective-C++ code that we rely on.
Although we could partition this out by subdirectory/module, there is so little of it that it seems cleaner to put it what little of it exists all in one place.
Definition at line 24 of file vtypes_platform_objc.mm.