[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Fwd: Re: marathon,was:Egale
Jo Even Skarstein wrote:
> On Wed, 15 Feb 2012 10:06:56 +0100, Helmut Karlowski
> <helmut.karlowski@ish.de> wrote:
>
> >> Now, I haven't done any SLB programming for atleast 10 years, so I could
> >> get this all wrong. But AFAIK when an application calls a function in a
> >> SLB, the function is run in the context of the calling application. So
> >> if
> >
> > In this case it must use the caller's apid etc.
>
> Of course, this is a shared library so you can't save stuff like this in
> local variables in the SLB. If Draconis does this then it's obviously
> buggy.
Marathon calls appl_init as well as the slb (not executed by the caller but the slb-process), so it's quite obvious.
> > That ist not done in draconis, else the slb would not call appl_init.
>
> I don't understand what you mean. Calling appl_init() in a SLB is not a
> problem. But the apid must be saved in/by the calling application, not in
> a static variable in the SLB itself.
I think the slb has its own apid, which differs from that of the caller.
-Helmut