[SR-Users] register_timer cb function does not have access to shared memoery var

Andy agrawal.ananda at gmail.com
Mon Dec 19 23:23:18 CET 2016

in mod_init I have something like
list = (struct list_t*) shm_malloc .....

this list is available from any functions in the module,

now there is a timer registered, in the same module
register_timer(callback_f, 0 , 5)

the callback_f function when tries to use list, always sees as empty

View this message in context: http://sip-router.1086192.n5.nabble.com/register-timer-cb-function-does-not-have-access-to-shared-memoery-var-tp154231.html
Sent from the Users mailing list archive at Nabble.com.

More information about the sr-users mailing list