From e7aa1ba135d358a0c03c9bcb7157c86a6d9e95c5 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 28 May 2016 22:13:24 +0200 Subject: lib: shm_ap_rbuff: sleep when read on empty rbuff When the ring buffer is empty, a read call will sleep. A write call on an empty ring buffer will wake up sleeping readers. --- src/ipcpd/shim-udp/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ipcpd') diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c index c6c16ebf..33b4be2f 100644 --- a/src/ipcpd/shim-udp/main.c +++ b/src/ipcpd/shim-udp/main.c @@ -783,7 +783,6 @@ static void * ipcp_udp_sdu_loop(void * o) } e = shm_ap_rbuff_read(_ap_instance->rb); - if (e == NULL) { rw_lock_unlock(&_ipcp->state_lock); continue; -- cgit v1.2.3