[Click] how to link use timer or pthread in my element?
Bart Braem
bart.braem at ua.ac.be
Mon May 25 03:06:48 EDT 2009
Dear,
On 21 May 2009, at 07:51, 竺昱 wrote:
> Yes, I have already put _timer.initialize(this) in the initialize
> method of this element.
> I think this initialize method is not called.
This can easily be tested with a click_chatter in that method.
>
> it still reports "void Timer::schedule_at(const Timestamp&): Assertion
> `_router && initialized()' failed."
>
Could you assert on initialized() yourself? That way it is easier to
find the cause of your problem.
> Could you tell me when the initialize method of an element will be
> called?
See <http://www.read.cs.ucla.edu/click/doxygen/classElement.html#bf2bbb7d3ae5a1372a6af9d7bb8269fe
>.
Regards,
Bart Braem
--
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.27
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.38.82
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be
More information about the click
mailing list