FlexRAN timers: Remove destroy_timers()
This commit is contained in:
@@ -248,16 +248,6 @@ err_code_t flexran_agent_create_timer(mid_t mod_id,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
err_code_t flexran_agent_destroy_timers(mid_t mod_id) {
|
|
||||||
struct timesync *sync = ×ync[mod_id];
|
|
||||||
pthread_mutex_lock(&sync->mutex_timer);
|
|
||||||
for (int i = sync->timer_num - 1; i < 0; --i) {
|
|
||||||
flexran_agent_timer_remove_internal(sync, i);
|
|
||||||
}
|
|
||||||
pthread_mutex_unlock(&sync->mutex_timer);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
err_code_t flexran_agent_destroy_timer(mid_t mod_id, xid_t xid) {
|
err_code_t flexran_agent_destroy_timer(mid_t mod_id, xid_t xid) {
|
||||||
struct timesync *sync = ×ync[mod_id];
|
struct timesync *sync = ×ync[mod_id];
|
||||||
pthread_mutex_lock(&sync->mutex_timer);
|
pthread_mutex_lock(&sync->mutex_timer);
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ err_code_t flexran_agent_create_timer(mid_t mod_id,
|
|||||||
flexran_agent_timer_callback_t cb,
|
flexran_agent_timer_callback_t cb,
|
||||||
Protocol__FlexranMessage *msg);
|
Protocol__FlexranMessage *msg);
|
||||||
|
|
||||||
/* Destroy all existing timers */
|
|
||||||
err_code_t flexran_agent_destroy_timers(mid_t mod_id);
|
|
||||||
|
|
||||||
/* Destroy the timer for task with id xid */
|
/* Destroy the timer for task with id xid */
|
||||||
err_code_t flexran_agent_destroy_timer(mid_t mod_id, xid_t xid);
|
err_code_t flexran_agent_destroy_timer(mid_t mod_id, xid_t xid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user