Lines Matching defs:tail
824 size_t count, head, tail, ready;
828 tail = client->ec_buffer_tail;
833 if ((tail + 1) % count == head) {
836 head = (tail + count - 1) % count;
854 client->ec_buffer[tail].type = type;
855 client->ec_buffer[tail].code = code;
856 client->ec_buffer[tail].value = value;
857 client->ec_buffer_tail = (tail + 1) % count;
873 size_t i, head, tail, ready, size;
876 tail = client->ec_buffer_tail;
881 printf("event queue: head=%zu ready=%zu tail=%zu size=%zu\n",
882 head, ready, tail, size);
890 if (i < head || i > tail)
898 else if (i == tail)
899 printf("<- tail\n");
911 size_t head, tail, count, i;
917 tail = client->ec_buffer_tail;
934 client->ec_buffer_ready = (tail + 1) % count;
938 memcpy(&client->ec_buffer[tail], event,
944 tail = (tail + 1) % count;
948 client->ec_buffer_tail = tail;