[Date Prev][Date Next]
RE: backend private data
Great - that was going to be my next question. So that structure needs to be mutexed for post-initialization modifications. Can I assume that the call to bi->bi_db_init is single-threaded? For instance, if the be-specific data is going to be loaded from a file or something, do I need to mutex it?
> -----Original Message-----
> From: Hallvard B Furuseth [mailto:email@example.com]
> Sent: Wednesday, July 02, 2003 2:51 PM
> To: David Parker
> Cc: openldap-devel@OpenLDAP.org
> Subject: Re: backend private data
> BTW, if you have a backend-specific data structure in be->be_private
> which your operations modify, remember to protect accesses to
> it with a
> mutex or read/write lock (see include/ldap_pvt_thread.h), so two
> operations in different threads won't access it at the same time.