We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9e1cc commit 823bd9dCopy full SHA for 823bd9d
lib/platform/linux/platform.c
@@ -179,6 +179,11 @@ static void * poll_for_indication(void * unused)
179
// Get the lock to be able to poll
180
pthread_mutex_lock(&m_poll_mutex);
181
182
+ // Get the number of free buffers in the indication queue
183
+ // Note: No need to lock the queue as only m_ind_queue_read can be updated
184
+ // and could still be modified when we release the lock after computing
185
+ // the max free space
186
+
187
/* Ask for maximum room in buffer queue and less than MAX */
188
if (!m_queue_empty && (m_ind_queue_write == m_ind_queue_read))
189
{
0 commit comments