xo-alloc2: register DArena facet + subsystem init
This commit is contained in:
parent
16309dfff6
commit
e87073f914
7 changed files with 130 additions and 19 deletions
23
xo-alloc2/include/xo/alloc2/init_alloc2.hpp
Normal file
23
xo-alloc2/include/xo/alloc2/init_alloc2.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/** @file init_alloc2.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Feb 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/subsys/Subsystem.hpp>
|
||||
|
||||
namespace xo {
|
||||
/* tag to represent the xo-alloc2/ subsystem within ordered initialization */
|
||||
enum S_alloc2_tag {};
|
||||
|
||||
template <>
|
||||
struct InitSubsys<S_alloc2_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
|
||||
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end init_alloc2.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue