Re: [Vala] GPrivete and GStaticPrivate



Ok, further with the extreme novice questions, but how can one pass custom(different) data to new threads?!?

Thread.create accepts a ThreadFunc delegate which is to be executed on the new thread. But ThreadFunc has to be function with no params. So in the ThreadFunc one can only access class members and fuctions of the class, created the thread, but these are all shared between all threads, spowned by that class.

hope Im not missing something obvios...
MihailNajdenov

----- Original Message ----
From: Ali Sabil <ali sabil gmail com>
To: Mihail Naydenov <mlists ymail com>
Sent: Friday, September 26, 2008 4:32:48 PM
Subject: Re: [Vala] GPrivete and GStaticPrivate

Hi,

I never used GPrivate or GStaticPrivate myself, but reading from the documentation they are probably just missing from the glib-2.0.vapi binding.

--
Ali

2008/9/26 Mihail Naydenov <mlists ymail com>
Are there bindings for  GStaticPrivate, GPrivete  and the *_private_set/get functions?
I was searching through the glib-2.0.vapi and did not find any.

Are those unnecessary in vala? How can one create and use data, private for a thread?

Im a novice, sorry if the question is lame :/
MihailNajdenov


_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]