MT#55283 obsolete buffer_lock

This should be protected by the master_lock already.

Change-Id: I5369546803c2b5ca9cb821ac7f8d3e7246d6af87
rfuchs/test
Richard Fuchs 1 year ago
parent 39ab7d4721
commit 2a14ce2f56

@ -4103,7 +4103,6 @@ static void __call_free(void *p) {
}
call_buffer_free(&c->buffer);
mutex_destroy(&c->buffer_lock);
rwlock_destroy(&c->master_lock);
assert(c->stream_fds.head == NULL);
@ -4114,7 +4113,6 @@ static call_t *call_create(const str *callid) {
ilog(LOG_NOTICE, "Creating new call");
c = obj_alloc0("call", sizeof(*c), __call_free);
mutex_init(&c->buffer_lock);
call_buffer_init(&c->buffer);
rwlock_init(&c->master_lock);
c->tags = tags_ht_new();

@ -712,7 +712,6 @@ struct call {
*/
struct obj obj;
mutex_t buffer_lock;
call_buffer_t buffer;
// use a single poller for all sockets within the call
@ -862,9 +861,7 @@ const rtp_payload_type *__rtp_stats_codec(struct call_media *m);
INLINE void *call_malloc(size_t l) {
void *ret;
mutex_lock(&call_memory_arena->buffer_lock);
ret = call_buffer_alloc(&call_memory_arena->buffer, l);
mutex_unlock(&call_memory_arena->buffer_lock);
return ret;
}

Loading…
Cancel
Save