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

2016-12-21 Thread Andy
Thanks Daniel, it was global and not static, I realize somehow the pointer was changed while maintaining the linked list -- View this message in context: http://sip-router.1086192.n5.nabble.com/register-timer-cb-function-does-not-have-access-to-shared-memory-var-tp154231p154278.html Sent from

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

2016-12-19 Thread Daniel-Constantin Mierla
Hello, is the list a global variable? Is it static? Cheers, Daniel On 19/12/2016 23:23, Andy wrote: > 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

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

2016-12-19 Thread Andy
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 -- Vie