Re: Need info on GClosure



on 11/1/01 8:48 PM, Charles Iliya Krempeaux at tnt linux ca wrote:

And I don't quite understand what GClosure is all about.  (Although
I think it has something to do with signals.)

GClosure is basically an object that represents a function to call. It makes
sure that you always have both data and a destroy notify function for that
data, any time you have a function to call (like a signal handler). And it
also does other things to make it easier for these callback functions to be
implemented in different languages -- it makes things easier for people
writing language bindings.

A nice thing about it is that it's easy to create simple closures and leave
them floating, so it's still pretty handy to use from C.

Some real expert can give you a more thorough answer.

    -- Darin




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