[Date Prev][Date Next]
Re: Thread pool contexts and SLAPI
>>>>> "Luke" == Luke Howard <lukeh@PADL.COM> writes:
> Is there a way we could extend libldap_r to return the thread
> context for the current thread?
That would be definitely useful.
> I note that there isn't a ldap_pvt_thread_self(). If there was,
> then the thread pool could maintain a thread ID / context
> Thoughts? I really need to get this working :-)
Is it okay to do the work in another thread? Then you could use
ldap_pvt_thread_pool_submit() which will give you a working context.
I had to resort to this trick so that I can read some configuration
information from LDAP when slapd is coming up.