mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 01:26:58 +01:00
ircd::client: Add conf item for pool dispatch flags.
This commit is contained in:
parent
ff666cc75a
commit
61f12bb751
2 changed files with 9 additions and 1 deletions
|
@ -124,6 +124,7 @@ struct ircd::client::settings
|
||||||
|
|
||||||
static item<size_t> stack_size;
|
static item<size_t> stack_size;
|
||||||
static item<size_t> pool_size;
|
static item<size_t> pool_size;
|
||||||
|
static item<size_t> pool_disp;
|
||||||
static item<size_t> max_client;
|
static item<size_t> max_client;
|
||||||
static item<size_t> max_client_per_peer;
|
static item<size_t> max_client_per_peer;
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,6 +46,13 @@ ircd::client::settings::pool_size
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ircd::conf::item<size_t>
|
||||||
|
ircd::client::settings::pool_disp
|
||||||
|
{
|
||||||
|
{ "name", "ircd.client.pool_disp" },
|
||||||
|
{ "default", long(ctx::dock::opts::LIFO) },
|
||||||
|
};
|
||||||
|
|
||||||
/// Linkage for the default settings
|
/// Linkage for the default settings
|
||||||
decltype(ircd::client::settings)
|
decltype(ircd::client::settings)
|
||||||
ircd::client::settings;
|
ircd::client::settings;
|
||||||
|
@ -90,7 +97,7 @@ ircd::client::pool_opts
|
||||||
{
|
{
|
||||||
.stack_size = size_t(settings.stack_size),
|
.stack_size = size_t(settings.stack_size),
|
||||||
.initial_ctxs = size_t(settings.pool_size),
|
.initial_ctxs = size_t(settings.pool_size),
|
||||||
.dispatch = ctx::dock::opts::SORT,
|
.dispatch = ctx::dock::opts(size_t(settings.pool_disp)),
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The pool of request contexts. When a client makes a request it does so by acquiring
|
/// The pool of request contexts. When a client makes a request it does so by acquiring
|
||||||
|
|
Loading…
Reference in a new issue