[SR-Users] Deleting the expired contacts using the Rtimer module

2013-02-06 Thread kiran bhosale
Hi we have developed the custom module which stores the registered users in a file.now we are trying to remove the expired contacts using the rtimer module.while saving the registered users to the file we also store the expires values in static array.but when we try to decrement

Re: [SR-Users] Deleting the expired contacts using the Rtimer module

2013-02-06 Thread Daniel-Constantin Mierla
Hello, the static array is stored on the private memory per process, thus cannot be updated by the timer. You should allocate the array in shared memory at startup, then it should work to update it from different application processes. Be sure you synchronize (with locks/mutexes) the operati

[SR-Users] Deleting the expired contacts using the Rtimer module

2013-02-05 Thread kiran bhosale
Hi we have developed the custom module which stores the registered users in a file.now we are trying to remove the expired contacts using the rtimer module.while saving the registered users to the file we also store the expires values in static array.but when we try to decrement