Hi, i need to disconnect a socket after some time of inactivity,
i m not sure how to do that in an optimum way(
according to the docs stopping/starting every time is not optimum)
 and safely (so updating the repeat member from a different thread while
the socket is being under the control of the loop thread).
and also i do not want the loop to be disconnecting the socket
while some threat is using the socket, so i dont know how much i would
increase the
repeat member if it was safe to do it from another thread any ways.
Any tip would be appreciated on how to deal with this situation, maybe
you think the only thing i can do is just to start/stop the sockets every
time ?
i may have thousands if not millions of sockets and timers (one timer per
socket)
and they might be used by a thread for an unknown period of time before
being available
again for another thread to use it.

thanks!!
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to