Skip to content

Issue with 'mg_timer_init()' #2484

Nov 20, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

We should perhaps clarify the documentation.
mg_timer_init() is intended to be called to init a timer that was previously added by mg_timer_add(), as it is the latter who allocs memory for the timer.
If you just need a timer "handy", add it with a very long timeout so it does not fire, and then set init it as you need it when you need it

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Comment options

You must be logged in to vote
2 replies
@scaprile
Comment options

@gvanem
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants