GDB (xrefs)

Macros
queue.h File Reference

Go to the source code of this file.

## Macros
#define | QUEUE_enque(TYPE, Q, V) queue_ ## TYPE ## _enque ((Q), (V))
#define | QUEUE_deque(TYPE, Q) queue_ ## TYPE ## _deque (Q)
#define | QUEUE_peek(TYPE, Q) queue_ ## TYPE ## _peek (Q)
#define | QUEUE_is_empty(TYPE, Q) queue_ ## TYPE ## _is_empty (Q)
#define | QUEUE_alloc(TYPE, FREE_FUNC) queue_ ## TYPE ## _alloc (FREE_FUNC)
#define | QUEUE_length(TYPE, Q) queue_ ## TYPE ## _length (Q)
#define | QUEUE_free(TYPE, Q) queue_ ## TYPE ## _free (Q)
#define | QUEUE_iterate(TYPE, Q, OPERATE, PARAM) queue_ ## TYPE ## _iterate ((Q), (OPERATE), (PARAM))
#define | QUEUE_remove_elem(TYPE, Q, ITER) queue_ ## TYPE ## _remove_elem ((Q), (ITER))
#define | QUEUE(TYPE) struct queue_ ## TYPE
#define | QUEUE_ELEM(TYPE) struct queue_elem_ ## TYPE
#define | QUEUE_ITER(TYPE) struct queue_iter_ ## TYPE
#define | QUEUE_ITER_FUNC(TYPE) queue_ ## TYPE ## _operate_func
#define | DEFINE_QUEUE_P(TYPE)
#define | DECLARE_QUEUE_P(TYPE)

## Macro Definition Documentation

## ◆ DECLARE_QUEUE_P

#define DECLARE_QUEUE_P | ( |  | TYPE | ) |

Value:
QUEUE (TYPE); \
QUEUE_ELEM (TYPE); \
QUEUE_ITER (TYPE); \
extern void \
queue_ ## TYPE ## _enque (QUEUE (TYPE) *q, TYPE v); \
extern TYPE \
queue_ ## TYPE ## _deque (QUEUE (TYPE) *q); \
extern int queue_ ## TYPE ## _is_empty (QUEUE (TYPE) *q); \
extern QUEUE (TYPE) * \
queue_ ## TYPE ## _alloc (void (*free_func) (TYPE)); \
extern int queue_ ## TYPE ## _length (QUEUE (TYPE) *q); \
extern TYPE \
queue_ ## TYPE ## _peek (QUEUE (TYPE) *q); \
extern void queue_ ## TYPE ## _free (QUEUE (TYPE) *q); \
typedef int QUEUE_ITER_FUNC(TYPE) (QUEUE (TYPE) *, \
QUEUE_ITER (TYPE) *, \
TYPE, \
void *); \
extern int \
queue_ ## TYPE ## _iterate (QUEUE (TYPE) *q, \
QUEUE_ITER_FUNC (TYPE) operate, \
void *); \
extern void \
queue_ ## TYPE ## _remove_elem (QUEUE (TYPE) *q, \
QUEUE_ITER (TYPE) *iter); \
QUEUE
#define QUEUE(TYPE)
Definition: queue.h:93
QUEUE_ITER
#define QUEUE_ITER(TYPE)
Definition: queue.h:95
rcuh_kind::TYPE
QUEUE_ITER_FUNC
#define QUEUE_ITER_FUNC(TYPE)
Definition: queue.h:96

Definition at line 271 of file queue.h.

## ◆ DEFINE_QUEUE_P

#define DEFINE_QUEUE_P | ( |  | TYPE | ) |

Definition at line 98 of file queue.h.

## ◆ QUEUE

#define QUEUE | ( |  | TYPE | ) | struct queue_ ## TYPE

Definition at line 93 of file queue.h.

## ◆ QUEUE_alloc

#define QUEUE_alloc | ( |  | TYPE,
|  |  | FREE_FUNC
| ) |  | queue_ ## TYPE ## _alloc (FREE_FUNC)

Definition at line 70 of file queue.h.

Referenced by _initialize_remote(), and remote_notif_state_allocate().

## ◆ QUEUE_deque

#define QUEUE_deque | ( |  | TYPE,
|  |  | Q
| ) |  | queue_ ## TYPE ## _deque (Q)

Definition at line 59 of file queue.h.

Referenced by remote_notif_process().

## ◆ QUEUE_ELEM

#define QUEUE_ELEM | ( |  | TYPE | ) | struct queue_elem_ ## TYPE

Definition at line 94 of file queue.h.

## ◆ QUEUE_enque

#define QUEUE_enque | ( |  | TYPE,
|  |  | Q,
|  |  | V
| ) |  | queue_ ## TYPE ## _enque ((Q), (V))

Definition at line 55 of file queue.h.

Referenced by handle_notification(), and push_stop_reply().

## ◆ QUEUE_free

#define QUEUE_free | ( |  | TYPE,
|  |  | Q
| ) |  | queue_ ## TYPE ## _free (Q)

Definition at line 76 of file queue.h.

Referenced by remote_notif_state_xfree().

## ◆ QUEUE_is_empty

#define QUEUE_is_empty | ( |  | TYPE,
|  |  | Q
| ) |  | queue_ ## TYPE ## _is_empty (Q)

Definition at line 66 of file queue.h.

Referenced by queued_stop_reply(), remote_async(), remote_notif_process(), and remote_wait().

## ◆ QUEUE_ITER

#define QUEUE_ITER | ( |  | TYPE | ) | struct queue_iter_ ## TYPE

Definition at line 95 of file queue.h.

## ◆ QUEUE_ITER_FUNC

#define QUEUE_ITER_FUNC | ( |  | TYPE | ) | queue_ ## TYPE ## _operate_func

Definition at line 96 of file queue.h.

## ◆ QUEUE_iterate

#define QUEUE_iterate | ( |  | TYPE,
|  |  | Q,
|  |  | OPERATE,
|  |  | PARAM
| ) |  | queue_ ## TYPE ## _iterate ((Q), (OPERATE), (PARAM))

Definition at line 83 of file queue.h.

Referenced by check_pending_events_prevent_wildcard_vcont(), discard_pending_stop_replies(), discard_pending_stop_replies_in_queue(), kill_new_fork_children(), peek_stop_reply(), remote_notif_remove_queued_reply(), and remove_new_fork_children().

## ◆ QUEUE_length

#define QUEUE_length | ( |  | TYPE,
|  |  | Q
| ) |  | queue_ ## TYPE ## _length (Q)

Definition at line 73 of file queue.h.

Referenced by push_stop_reply(), and stop_reply_queue_length().

## ◆ QUEUE_peek

#define QUEUE_peek | ( |  | TYPE,
|  |  | Q
| ) |  | queue_ ## TYPE ## _peek (Q)

Definition at line 63 of file queue.h.

## ◆ QUEUE_remove_elem

#define QUEUE_remove_elem | ( |  | TYPE,
|  |  | Q,
|  |  | ITER
| ) |  | queue_ ## TYPE ## _remove_elem ((Q), (ITER))

Definition at line 88 of file queue.h.

Referenced by remote_notif_remove_once_on_match(), remove_stop_reply_for_inferior(), and remove_stop_reply_of_remote_state().