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.

From: Fabrizio Bertocci <fabrizio@xxxxxxx>
Date: Mon, 04 Apr 2005 17:57:38 -0700
Thanks Luis,
You perfectly got the point. I'm currently in the process of updating the RTPS packet dissector, and while I'm here I'm making sure it 's thread safe...
One done, 699 to go...
Fabrizio


LEGO wrote:

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