> On Nov 2, 2016, at 1:42 PM, Bernardo Breder via swift-users 
> <swift-users@swift.org> wrote:
> 
> The algorithm that i send is a example of server code and this code will 
> execute in a ubuntu environment. When i install in the ubuntu, the swiftc 
> show me that the autoreleasepool is "use of unresolved identifier 
> 'autoreleasepool'". I want to clean the memory all the time when a client 
> close.

You don’t need to on Ubuntu. Autorelease pools are only to clean up Objective-C 
object references. Those don’t exist when you’re not running on an Apple 
platform; you only have Swift objects. 

That SO question you linked to is talking about code running on macOS or iOS. 
It doesn’t apply to other platforms.

—Jens

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to