Wireshark mailing list archives
Re: Replacing GHashTable with wmem_map_t
From: Pascal Quantin <pascal.quantin () gmail com>
Date: Wed, 9 Dec 2015 15:23:49 +0100
2015-12-09 15:14 GMT+01:00 POZUELO Gloria (BCS/PSD) <gloria.pozuelo () bics com
:
Hi Pascal, I think that your response is missed because I’ve received a copy of my message L
Mmm, indeed this is an interesting bug of my email client on my smartphone... Too bad, it lost everything. Let's summarize what I wrote and lost then :) wmem_map does not offer all the subtleties of the GLib implementation yet (as there was no need up to now). So if you really need to iterate over the elements, you can either submit a patch to add this functionality, or stick to GHashTables (but in that case do not forget to clean memory if required). Or maybe this is a sign you should use a tree instead of a hash map. Pascal.
*From:* wireshark-dev-bounces () wireshark org [mailto: wireshark-dev-bounces () wireshark org] *On Behalf Of *Pascal Quantin *Sent:* Wednesday 9 December 2015 14:30 *To:* Developer support list for Wireshark *Subject:* Re: [Wireshark-dev] Replacing GHashTable with wmem_map_t Hi Gloria Hello, I’d like to ask you about the new API. I’m replacing the GHashTable type with wmem_map_t and I don’t know how can iterate through the wmem_map, as we can do it with GHashTable by using g_hash_table_iter methods. Thank you in advance, Regards. ------------------------------ **** DISCLAIMER**** http://www.bics.com/maildisclaimer/ ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org ?subject=unsubscribe ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org ?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Replacing GHashTable with wmem_map_t POZUELO Gloria (BCS/PSD) (Dec 09)
- Re: Replacing GHashTable with wmem_map_t Pascal Quantin (Dec 09)
- Re: Replacing GHashTable with wmem_map_t POZUELO Gloria (BCS/PSD) (Dec 09)
- Re: Replacing GHashTable with wmem_map_t Pascal Quantin (Dec 09)
- Re: Replacing GHashTable with wmem_map_t POZUELO Gloria (BCS/PSD) (Dec 09)
- Re: Replacing GHashTable with wmem_map_t Pascal Quantin (Dec 09)