[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Thread-local malloc discussion summary



> -----Original Message-----
> From: Luke Howard [mailto:lukeh@PADL.COM]

> >Is there a way for the front-end to detect that any plugins
> >actually exist, first?

> doPluginFNs() could easily be enhanced to return whether any
> plugins were
> invoked instead of returning LDAP_SUCCESS both for no plugins
> and successful
> invocation of all plugins.
>
> In the case of the filters, you probably need another
> function to test
> whether any plugins would be invoked first, too, eg. testPluginsFNs().

I have another idea - have ch_free lookup the current thread-local context
and see if the current pointer belongs to it or not. We can make the context
lookup very cheap, just using an array of context pointers indexed by
(hash(threadID)) or somesuch.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support