+
+void unregister_module_timers(int module_id) {
+ SYNCHRONIZE(synchronized);
+ struct timeq_entry *centry, *next, *last = NULL;
+ for(centry = timeq_events; centry; centry = next) {
+ next = centry->next;
+ if(centry->module_id == module_id) {
+ if(last)
+ last->next = centry->next;
+ else
+ timeq_events = centry->next;
+ free(centry->name);
+ free(centry);
+ } else
+ last = centry;
+ }
+ DESYNCHRONIZE(synchronized);
+}