Lines Matching defs:ring
59 pthread_mutex_t lock_ring; /* serialize access to the ring buffer */
60 struct lws_ring *ring; /* ringbuffer holding unsent messages */
106 pthread_mutex_lock(&vhd->lock_ring); /* --------- ring lock { */
109 n = (int)lws_ring_get_count_free_elements(vhd->ring);
123 n = (int)lws_ring_insert(vhd->ring, &amsg, 1);
135 pthread_mutex_unlock(&vhd->lock_ring); /* } ring lock ------- */
176 vhd->ring = lws_ring_create(sizeof(struct msg), 8,
178 if (!vhd->ring)
200 if (vhd->ring)
201 lws_ring_destroy(vhd->ring);
231 pss->tail = lws_ring_get_oldest_tail(vhd->ring);
261 pmsg = lws_ring_get_element(vhd->ring, &pss->tail);
274 vhd->ring, /* lws_ring object */
283 if (lws_ring_get_element(vhd->ring, &pss->tail))
382 lwsl_user("LWS minimal http Server-Side Events + ring | visit http://localhost:7681\n");