Lines Matching refs:threaddata
124 struct ldapdb_entry *threaddata, *conndata;
132 threaddata = allthreadsdata;
133 free(threaddata->index);
134 while (threaddata->data != NULL) {
135 conndata = threaddata->data;
139 threaddata->data = conndata->next;
142 allthreadsdata = threaddata->next;
143 free(threaddata);
151 threaddata = ldapdb_find(allthreadsdata, &threadid, sizeof(threadid));
152 if (threaddata == NULL) {
154 threaddata = malloc(sizeof(*threaddata));
155 if (threaddata == NULL)
157 threaddata->index = malloc(sizeof(threadid));
158 if (threaddata->index == NULL) {
159 free(threaddata);
162 *(unsigned long *)threaddata->index = threadid;
163 threaddata->size = sizeof(threadid);
164 threaddata->data = NULL;
168 ldapdb_insert(&allthreadsdata, threaddata);
172 /* threaddata points at the connection list for current thread */
174 conndata = ldapdb_find((struct ldapdb_entry *)threaddata->data,
184 ldapdb_insert((struct ldapdb_entry **)&threaddata->data,