10 messages in com.mysql.lists.ndb-connectorsRe: [Fwd: Re: [Swig-user] C++ wrappin...
FromSent OnAttachments
Monty Taylor07 May 2007 14:52 
Mika Raento07 May 2007 23:37 
Monty Taylor08 May 2007 00:06 
Mika Raento08 May 2007 00:21 
Monty Taylor08 May 2007 00:46 
Mika Raento08 May 2007 00:57 
Mika Raento08 May 2007 01:27 
Mika Raento08 May 2007 01:58 
Mika Raento08 May 2007 03:36 
Monty Taylor08 May 2007 11:05 
Subject:Re: [Fwd: Re: [Swig-user] C++ wrapping question]
From:Monty Taylor (mtay@mysql.com)
Date:05/08/2007 12:06:57 AM
List:com.mysql.lists.ndb-connectors

Mika Raento wrote:

Here's some info about refcounting... it looks like we need to explore %refcount and %unrefcount

Hm. I don't think it's that simple. The %refcount stuff assumes your C++ objects are refcounted. Which the Ndb objects aren't. Which is why I've been toying with the idea of hooking into the reference counting/gc of the target languages. But that may not be possible in any realistic way.

Indeed, you are right.

There are only a few things that need to get refcounted - Ndb, NdbTransaction, NdbOperation... and even then it's unlikely that you let the Ndb go out of scope. So maybe hooking in language level refcounting wouldn't be too terrible.