Blender V5.3
gsqueue.cc File Reference

A generic structure queue (a queue for fixed length generally small) structures. More...

#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_gsqueue.hh"
#include "BLI_utildefines.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::QueueChunk
struct  blender::GSQueue

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define CHUNK_SIZE_DEFAULT   (1 << 16)
#define CHUNK_ELEM_MIN   32

Functions

static void * blender::queue_get_first_elem (GSQueue *queue)
static void * blender::queue_get_last_elem (GSQueue *queue)
static size_t blender::queue_chunk_elem_max_calc (const size_t elem_size, size_t chunk_size)
GSQueue * blender::BLI_gsqueue_new (size_t elem_size)
static void blender::queue_free_chunk (QueueChunk *data)
void blender::BLI_gsqueue_free (GSQueue *queue)
void blender::BLI_gsqueue_push (GSQueue *queue, const void *item)
void blender::BLI_gsqueue_pop (GSQueue *queue, void *r_item)
size_t blender::BLI_gsqueue_len (const GSQueue *queue)
bool blender::BLI_gsqueue_is_empty (const GSQueue *queue)

Detailed Description

A generic structure queue (a queue for fixed length generally small) structures.

Definition in file gsqueue.cc.

Macro Definition Documentation

◆ CHUNK_ELEM_MIN

#define CHUNK_ELEM_MIN   32

◆ CHUNK_SIZE_DEFAULT

#define CHUNK_SIZE_DEFAULT   (1 << 16)

Definition at line 24 of file gsqueue.cc.

Referenced by blender::BLI_gsqueue_new(), and blender::BLI_stack_new().