A C++ library for logging very fast and without allocating.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

23 lignes
550 B

#pragma once
#include <unordered_map>
#include <string>
#include <functional>
#include <any>
#include "disruptor.h"
struct registry_slab {
int id;
std::string name;
std::function<token_t(size_t)> reserve_write;
std::function<token_t(size_t)> reserve_write_c_align;
std::function<void(token_t)> conclude_write;
std::function<write_span(token_t)> get_buffer;
std::any disruptor;
};
/**
* @internal used because we need the pointer stability
* @see sl_transaction
*/
extern std::unordered_map<int, registry_slab> registry_map;