Re: Request of API which are thread safe/unsafe



On 4/4/2012 5:30 AM, Colin Walters wrote:
Another idea is to add the concept of "only run dispose/finalize in
this main context" to GObject.  Possibly objects could record
the main context in which they were constructed, and GObject would
do the marshaling automatically.  G_TYPE_FLAG_MATCH_DISPOSE_CONTEXT ?

It would be nice if this flag name would be a bit more generic - G_TYPE_FLAG_MATCH_CONTEXT only; bindings then could arrange marshaling *any* call of such object into the appropriate context. This could help to overcome possible bindings' problems with planned deprecations of GTK+ threads API.

Pavel



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