+void clear_handleinfoqueue(struct ClientSocket *client) {
+ if(!client->handleinfo_first) return;
+ SYNCHRONIZE(cache_sync);
+ struct HandleInfoQueueEntry *entry, *next;
+ for(entry = client->handleinfo_first; entry; entry = next) {
+ next = entry->next;
+ free(entry);
+ }
+ client->handleinfo_last = NULL;
+ client->handleinfo_first = NULL;
+ DESYNCHRONIZE(cache_sync);
+}
+