Re: [pygccxml-development] Feature request: Creating thread safe methods
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-08-01 13:25:01
|
On 8/1/06, Matthias Baas <ba...@ir...> wrote: > >> If you mean that the actual policy class is outside py++ (but of course, > >> the framework for this to work is inside py++), then I agree.... :) > > > > I think we understand each other. I meant, that you will define what > > services you will need from py++ in order to implement this feature > > efficiently. Also do you > > mean "actual policy class" is something similar to classes that derives > > from ArgTransformerBase? > > Yes, exactly. Please take a look on decl_wrappers.constructor_t class. It has "body" property. I think, all you need to implement the feature is similar property on member_function_t class. Actually you will need 2 properties: 1. body 2. default_virtual_body ( better name is desired ). Or something like this. If those properties contain a text, pyplusplus will use it as function body, otherwise it will generate the body. I mean something similar to what "inserting code" document describes. > > By the way, do you want to rename it? Thread safety has nothing to do with > > arguments. > > Yes, I know. I suppose, eventually we have to find a better name (but I > think "call wrapper policy" also doesn't really capture it...) Function transform policies? > > Matthias, can you write some document that will contain description of > > what you are going to do: > > I tried to come up with some initial document here: > https://realityforge.vrsource.org/view/PyPP/CodeInserter It is a pleasure to work with you :-) -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |