tcpdump mailing list archives
thread safety of libpcap
From: Darren Reed <darrenr () reed wattle id au>
Date: Mon, 26 May 2003 23:33:27 +1000 (EST)
How safe is it going to be to re-use pcap_compile() multiple times from within the same program space, on different threads for different network interfaces ? If I have a program that spawns 4 threads at the same time, and each one does a pcap_compile() for its own NIC, can I expect the program to die a sudden and nasty death due to it being completely thread unsafe? I notice there are no mentions of thread safety or thread issues anywhere in the man pages...is this something that should be addressed? if it were, would the patches be well accepted if they didn't change the external API ? Darren - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- thread safety of libpcap Darren Reed (May 28)
