Data Structures | Typedefs | Functions

ink_llqueue.h File Reference

A brief file description. More...

#include "ink_mutex.h"
#include "ink_thread.h"
Include dependency graph for ink_llqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  llqrec_s
struct  llq_s

Typedefs

typedef struct llqrec_s LLQrec
typedef struct llq_s LLQ

Functions

LLQcreate_queue (void)
int enqueue (LLQ *q, void *data)
void * dequeue (LLQ *q)
int queue_is_empty (LLQ *q)
uint64_t queue_len (LLQ *Q)
uint64_t queue_highwater (LLQ *Q)
void delete_queue (LLQ *Q)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_llqueue.h.


Typedef Documentation

typedef struct llq_s LLQ
typedef struct llqrec_s LLQrec

Function Documentation

LLQ* create_queue ( void   ) 
void delete_queue ( LLQ Q  ) 

Definition at line 90 of file llqueue.cc.

References ats_free(), ink_mutex_destroy(), ink_sem_destroy(), llq_s::mux, and llq_s::sema.

void* dequeue ( LLQ q  ) 
int enqueue ( LLQ q,
void *  data 
)
uint64_t queue_highwater ( LLQ Q  ) 

Definition at line 140 of file llqueue.cc.

References llq_s::highwater.

int queue_is_empty ( LLQ q  ) 

Definition at line 173 of file llqueue.cc.

References queue_len().

Referenced by RecConfigFileParse().

uint64_t queue_len ( LLQ Q  ) 

Definition at line 128 of file llqueue.cc.

References llq_s::len.

Referenced by queue_is_empty().