A library for working with phylogenetic and population genetic data.
v0.32.0
ConcurrentQueueDefaultTraits Struct Reference

#include <genesis/utils/threading/concurrent_queue.hpp>

Detailed Description

Definition at line 458 of file concurrent_queue.hpp.

Static Public Member Functions

static void free (void *ptr)
 
static void * malloc (size_t size)
 

Public Types

typedef std::size_t index_t
 
typedef std::size_t size_t
 

Static Public Attributes

static const size_t BLOCK_SIZE = 32
 
static const size_t EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD = 32
 
static const std::uint32_t EXPLICIT_CONSUMER_CONSUMPTION_QUOTA_BEFORE_ROTATE = 256
 
static const size_t EXPLICIT_INITIAL_INDEX_SIZE = 32
 
static const size_t IMPLICIT_INITIAL_INDEX_SIZE = 32
 
static const size_t INITIAL_IMPLICIT_PRODUCER_HASH_SIZE = 32
 
static const int MAX_SEMA_SPINS = 10000
 
static const size_t MAX_SUBQUEUE_SIZE = details::const_numeric_max<size_t>::value
 
static const bool RECYCLE_ALLOCATED_BLOCKS = false
 

Member Function Documentation

◆ free()

static void free ( void *  ptr)
inlinestatic

Definition at line 541 of file concurrent_queue.hpp.

◆ malloc()

static void* malloc ( size_t  size)
inlinestatic

Definition at line 537 of file concurrent_queue.hpp.

Member Typedef Documentation

◆ index_t

typedef std::size_t index_t

Definition at line 472 of file concurrent_queue.hpp.

◆ size_t

typedef std::size_t size_t

Definition at line 460 of file concurrent_queue.hpp.

Member Data Documentation

◆ BLOCK_SIZE

const size_t BLOCK_SIZE = 32
static

Definition at line 479 of file concurrent_queue.hpp.

◆ EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD

const size_t EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD = 32
static

Definition at line 486 of file concurrent_queue.hpp.

◆ EXPLICIT_CONSUMER_CONSUMPTION_QUOTA_BEFORE_ROTATE

const std::uint32_t EXPLICIT_CONSUMER_CONSUMPTION_QUOTA_BEFORE_ROTATE = 256
static

Definition at line 505 of file concurrent_queue.hpp.

◆ EXPLICIT_INITIAL_INDEX_SIZE

const size_t EXPLICIT_INITIAL_INDEX_SIZE = 32
static

Definition at line 490 of file concurrent_queue.hpp.

◆ IMPLICIT_INITIAL_INDEX_SIZE

const size_t IMPLICIT_INITIAL_INDEX_SIZE = 32
static

Definition at line 494 of file concurrent_queue.hpp.

◆ INITIAL_IMPLICIT_PRODUCER_HASH_SIZE

const size_t INITIAL_IMPLICIT_PRODUCER_HASH_SIZE = 32
static

Definition at line 500 of file concurrent_queue.hpp.

◆ MAX_SEMA_SPINS

const int MAX_SEMA_SPINS = 10000
static

Definition at line 517 of file concurrent_queue.hpp.

◆ MAX_SUBQUEUE_SIZE

const size_t MAX_SUBQUEUE_SIZE = details::const_numeric_max<size_t>::value
static

Definition at line 511 of file concurrent_queue.hpp.

◆ RECYCLE_ALLOCATED_BLOCKS

const bool RECYCLE_ALLOCATED_BLOCKS = false
static

Definition at line 524 of file concurrent_queue.hpp.


The documentation for this struct was generated from the following file: