Wireshark-dev: Re: [Wireshark-dev] Clean up the "--enable-threads" configure option?
From: Michael Tüxen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Tue, 23 Nov 2010 21:10:05 +0100
On Nov 23, 2010, at 8:59 PM, Gerald Combs wrote:

> Anders Broman wrote:
>> Hi,
>> Reading up on treads I came across the following
>> _http://www.wireshark.org/lists/wireshark-users/200906/msg00209.html_
>> 
>> And _http://www.wireshark.org/lists/wireshark-dev/200611/msg00199.html_
>>> we used to have 2 threads in the old ethereal for a short period. one
>> thread for the main application and a second thread that was dedicated
>> to only
>>> update/redraw teh statistics taps once every few seconds. this did
>> cause a quite significant degradation in performance/speed of ethereal
>> which is why >it was removed :-(
>> 
>> However it looks like dumpcap uses threads on Windows would it be
>> beneficial for dumpcap to use threads on other systems as well?
>> Anyway it sounds like the tread code in Main.c should be removed -
>> right? Then threads could be enabled by default(?)
> 
> Dumpcap uses threads on Windows to get around the inability to use
> select/WaitForSingleObject on a pipe. It might be beneficial to have
> common code on other systems.
dumpcap will use threads to support capturing on multiple interfaces
simultaneously. I'll implement it soon, Irene is already working on
changing the GUI to support it...

Best regards
Michael
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
>