Re: [swift-users] Autoreleasepool for Ubuntu

2016-11-02 Thread Bernardo Breder via swift-users
2016-11-02 18:36 GMT-02:00 Joe Groff : > > On Nov 2, 2016, at 1:16 PM, Bernardo Breder via swift-users < > swift-users@swift.org> wrote: > > In my http server i want to manager the memory all the time that we close > a socket, like the example of manager in this link: &g

Re: [swift-users] Autoreleasepool for Ubuntu

2016-11-02 Thread Bernardo Breder via swift-users
In my http server i want to manager the memory all the time that we close a socket, like the example of manager in this link: http://stackoverflow.com/questions/25860942/is-it-necessary-to-use-autoreleasepool-in-a-swift-program Algorithm that show the ideia: *func request(content) { ... }* *let

Re: [swift-users] Autoreleasepool for Ubuntu

2016-11-02 Thread Bernardo Breder via swift-users
t; > > On Nov 1, 2016, at 6:40 PM, Bernardo Breder via swift-users < > swift-users@swift.org> wrote: > > Hello, > > I want to create a mini http server project and execute at Ubuntu 15. The > Xcode compile and access the function "autoreleasepool", but when

[swift-users] Autoreleasepool for Ubuntu

2016-11-02 Thread Bernardo Breder via swift-users
Hello, I want to create a mini http server project and execute at Ubuntu 15. The Xcode compile and access the function "autoreleasepool", but when i compile the same code at Ubuntu, this function not found For example, i can compile the code above at Xcode: while true { autoreleasepool {