mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Cleanup: Removed unused global.shutdown_cond
This commit is contained in:
parent
85d55c850d
commit
ec4ef5a0bb
@ -119,7 +119,6 @@ void connection_initialize(void)
|
|||||||
thread_spin_create (&_connection_lock);
|
thread_spin_create (&_connection_lock);
|
||||||
thread_mutex_create(&move_clients_mutex);
|
thread_mutex_create(&move_clients_mutex);
|
||||||
thread_rwlock_create(&_source_shutdown_rwlock);
|
thread_rwlock_create(&_source_shutdown_rwlock);
|
||||||
thread_cond_create(&global.shutdown_cond);
|
|
||||||
_req_queue = NULL;
|
_req_queue = NULL;
|
||||||
_req_queue_tail = &_req_queue;
|
_req_queue_tail = &_req_queue;
|
||||||
_con_queue = NULL;
|
_con_queue = NULL;
|
||||||
@ -139,7 +138,6 @@ void connection_shutdown(void)
|
|||||||
matchfile_release(banned_ip);
|
matchfile_release(banned_ip);
|
||||||
matchfile_release(allowed_ip);
|
matchfile_release(allowed_ip);
|
||||||
|
|
||||||
thread_cond_destroy(&global.shutdown_cond);
|
|
||||||
thread_rwlock_destroy(&_source_shutdown_rwlock);
|
thread_rwlock_destroy(&_source_shutdown_rwlock);
|
||||||
thread_spin_destroy (&_connection_lock);
|
thread_spin_destroy (&_connection_lock);
|
||||||
thread_mutex_destroy(&move_clients_mutex);
|
thread_mutex_destroy(&move_clients_mutex);
|
||||||
@ -723,7 +721,6 @@ void connection_accept_loop(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Give all the other threads notification to shut down */
|
/* Give all the other threads notification to shut down */
|
||||||
thread_cond_broadcast(&global.shutdown_cond);
|
|
||||||
|
|
||||||
/* wait for all the sources to shutdown */
|
/* wait for all the sources to shutdown */
|
||||||
thread_rwlock_wlock(&_source_shutdown_rwlock);
|
thread_rwlock_wlock(&_source_shutdown_rwlock);
|
||||||
|
@ -43,8 +43,6 @@ typedef struct ice_global_tag
|
|||||||
relay_t *master_relays;
|
relay_t *master_relays;
|
||||||
|
|
||||||
module_container_t *modulecontainer;
|
module_container_t *modulecontainer;
|
||||||
|
|
||||||
cond_t shutdown_cond;
|
|
||||||
} ice_global_t;
|
} ice_global_t;
|
||||||
|
|
||||||
extern ice_global_t global;
|
extern ice_global_t global;
|
||||||
|
Loading…
Reference in New Issue
Block a user