mirror of
https://github.com/matrix-construct/construct
synced 2024-11-27 09:12:36 +01:00
27 lines
901 B
C++
27 lines
901 B
C++
// The Construct
|
|
//
|
|
// Copyright (C) The Construct Developers, Authors & Contributors
|
|
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
|
|
//
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
namespace ircd::ctx
|
|
{
|
|
struct stack;
|
|
}
|
|
|
|
struct ircd::ctx::stack
|
|
{
|
|
uintptr_t base {0}; // assigned when spawned
|
|
size_t max {0}; // User given stack size
|
|
size_t at {0}; // Updated for profiling at sleep
|
|
size_t peak {0}; // Updated for profiling; maximum
|
|
|
|
stack(const size_t &max);
|
|
|
|
static const stack &get(const ctx &) noexcept;
|
|
static stack &get(ctx &) noexcept;
|
|
};
|