I'm using a GTMLogger functions for formatted logging in my application. This application creates real-time posix threads (audio packets processing). Sometimes we need to perform a logging from within these non-Cocoa threads. GTMLogger creates autoreleased objects and I thought to put an @autoreleasepool block on GTMLogger calls in the function, that logs from non-Cocoa threads, but I'm afraid it will affect the performance.
My question is - can I somehow create the autorelease pool and associate it with the current posix thread, so the pool is created only once per thread and not each time the log function is called?
Thanks in advance
pthreadyou pass it a method to call, so can't you put@autoreleasepoolin this top-level method, just likemain.min an Xcode-generate app? - trojanfoe