iterate-ch / rococoa

Rococoa allows you to call Objective-C code through Java classes and interfaces that you define.
GNU Lesser General Public License v3.0
72 stars 18 forks source link

Autorelease pool allocation in callOnMainThread #8

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
It should be decided wether it is Rococoa or the responsibility of the
caller wheter an autorelease pool neeeds to be created when calling
`callOnMainThread`. Currently a pool is created by Rococoa but this may be
redundant if the caller has already created one of its own before invoking
`Foundation.runOnMainThread`.

This is in
[http://code.google.com/p/rococoa/source/browse/trunk/rococoa/rococoa-core/src/m
ain/native/Rococoa.m#8
Rococoa.m].

Original issue reported on code.google.com by dkocher@sudo.ch on 7 Oct 2009 at 12:37

dkocher commented 3 years ago

Responsibility of the caller.