[Vala] Life time of args passsed to async methods
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Life time of args passsed to async methods
- Date: Sat, 16 Apr 2011 08:00:28 +0800
Is the following safe? Will the argument be
freed when xx returns, but async_method is still
in the background?
void xx () {
async_method (new SomeObject ());
}
What about the "this" argument in the following;
is it safe?
void xx () {
var y = new SomeOject ();
y.async_method ();
}
I tried to figure out the answer to these question
from the generated C, but was lost in the tangle.
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]