Re: prevent multiple calls to rt_term

2012-08-13 Thread Ellery Newcomer
On 08/13/2012 03:37 PM, Sean Kelly wrote: On Aug 13, 2012, at 2:07 PM, Ellery Newcomer wrote: On 08/13/2012 01:19 PM, Sean Kelly wrote: Sounds like what's needed is a call counter, so if rt_init is called N times, rt_term must be called N times before the runtime really terminates. is it

Re: prevent multiple calls to rt_term

2012-08-13 Thread Sean Kelly
On Aug 13, 2012, at 2:07 PM, Ellery Newcomer wrote: > On 08/13/2012 01:19 PM, Sean Kelly wrote: >> Sounds like what's needed is a call counter, so if rt_init is called N >> times, rt_term must be called N times before the runtime really terminates. >> > > is it valid to call rt_init more than

Re: prevent multiple calls to rt_term

2012-08-13 Thread Ellery Newcomer
On 08/13/2012 01:19 PM, Sean Kelly wrote: Sounds like what's needed is a call counter, so if rt_init is called N times, rt_term must be called N times before the runtime really terminates. is it valid to call rt_init more than once?

Re: prevent multiple calls to rt_term

2012-08-13 Thread Sean Kelly
Sounds like what's needed is a call counter, so if rt_init is called N times, rt_term must be called N times before the runtime really terminates. On Aug 13, 2012, at 1:14 PM, Ellery Newcomer wrote: > Hello. > > In Pyd, I am trying to get python extension libraries working, but this > requir

prevent multiple calls to rt_term

2012-08-13 Thread Ellery Newcomer
Hello. In Pyd, I am trying to get python extension libraries working, but this requires building shared libraries with D. LDC works adequately for this, if you don't mind not having module constructors or unittests; however, in the presence of multiple shared libraries coordinating rt_init an