Make Tairon::Net::Timer more safe.
commitad1fb3e324dfea8dfb10096adf7c5d69269962a6
authorDavid Brodsky <trekie@sinister.cz>
Wed, 18 Oct 2006 21:52:39 +0000 (18 23:52 +0200)
committerDavid Brodsky <trekie@sinister.cz>
Wed, 18 Oct 2006 21:52:39 +0000 (18 23:52 +0200)
tree8b817348c1433ab1af9ef481aa596fa4dfe656f4
parent810135eee798077c83edc7af114b890c66822fcc
Make Tairon::Net::Timer more safe.

Because timers work like sockets do in the sense of signals it is appropriate
to avoid race conditions in the same way. Just call destroy() method and let
the timer to be deleted when it is not used in any thread (at least by
Tairon::Net::Loop).
src/net-core/timer.cpp
src/net-core/timer.h