All Manuals > LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

NextPrevUpTopContentsIndex

make-autorelease-pool

Function
Summary

Makes an autorelease pool for the current thread.

Package

objc

Signature

make-autorelease-pool => pool

Values

pool

A foreign pointer to an autorelease pool object.

Description

The function make-autorelease-pool returns a new Objective-C autorelease pool for the current thread. An autorelease pool is provided automatically for the main thread when running CAPI with Cocoa, but other threads need to allocate one if they call Objective-C methods that use autorelease.

See also

autorelease
with-autorelease-pool


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 15 Feb 2015

NextPrevUpTopContentsIndex