Ethereal-dev: Re: [Ethereal-dev] Thread issues

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Tue, 5 Apr 2005 02:23:35 +0200
No, as of today there's a single thread handling dissection. More than
that, today many dissectors use global variables during dissection.
Which is a serious impediment to multithreading.

One day we might want to modify the way dissectors are called passing
to the invoked disssector a data structure in which to contain its
state data, Until that day, and any other days needed to change the
700 or so dissectors in there,  I think the only way is a single
thread.

On Apr 5, 2005 1:59 AM, Fabrizio Bertocci <fabrizio@xxxxxxx> wrote:
> Hi,
> Does anyone know if the main dissector function:
>     static gboolean dissect_xxxxx(tvbuff_t *tvb, packet_info *pinfo,
> proto_tree *tree);
> can be invoked from two different threads concurrently?
> 
> The question can be rewritte into: does Ethereal call the dissectors
> only from one thread at the time or there's a chance (or will be a
> chance in future versions) that more than one thread will call the
> dissector function at the same time?
> 
> Thanks,
> Fabrizio
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
> 


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan