Ticket #699 (new enhancement)
maphash enhancement
| Reported by: | mturk@… | Owned by: | sdlime |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapServer C Library | Version: | 4.3 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Hi,
Simple patch that enhances the iterating trough hash table.
It uses the new iterator object for thread saefty.
The current implementation involves hash lookup for each table element.
Here is the sample how it is used
hashTableIteratorObj iter = msHashIteratorNew(hash_table);
while (iter->current) {
/* iter->current is the pointer to the hashObj
* so you can use key and data directly
*/
printf("key = %s data = %s\n", iter->current->key, iter->current->data);
/* advance to the next element */
msHashIteratorNext(iter);
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

