zf8848 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

The Efficiency of talk_base::PhysicalSocketServer::Wait() #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
Every time we issue "talk_base::PhysicalSocketServer::Wait()", it checks
and then select the net events of all SocketDispathers to one event object.

I wonder :
1.If the effciency will be poor when I use a work thread which derived from 
  class talk_base::Thread to trasmit some stream data such as Video.

2.When a PhysicalSocketServer object has more SocketDispather, that each
one  has some "NetEvents" to be notified from its Socket handle, Will all
of the events be CORRECTLY signaled when "Wait()" selects them on one event
object?

thanks

Achilles

Original issue reported on code.google.com by zeyuan....@gmail.com on 22 Apr 2009 at 7:28

GoogleCodeExporter commented 9 years ago
Google products use Wait() without any efficiency problems.

Original comment by juberti@google.com on 9 Sep 2011 at 7:29