1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef __CEPH_LOG_ENTRYQUEUE_H
5 #define __CEPH_LOG_ENTRYQUEUE_H
14 struct Entry *m_head, *m_tail;
20 void swap(EntryQueue& other) {
22 struct Entry *h = m_head, *t = m_tail;
24 m_head = other.m_head;
25 m_tail = other.m_tail;
31 void enqueue(Entry *e) {
45 m_head = m_head->m_next;