mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd:Ⓜ️:typing: Ensure termination of timeout worker on unload.
This commit is contained in:
parent
a48e481a44
commit
0c896d7c58
1 changed files with 9 additions and 2 deletions
|
@ -321,14 +321,21 @@ ircd::m::typing::for_each(const closure &closure)
|
||||||
static void timeout_timeout(const typist &);
|
static void timeout_timeout(const typist &);
|
||||||
static bool timeout_check();
|
static bool timeout_check();
|
||||||
static void timeout_worker();
|
static void timeout_worker();
|
||||||
context timeout_context
|
static context timeout_context
|
||||||
{
|
{
|
||||||
"typing",
|
"typing",
|
||||||
256_KiB,
|
256_KiB,
|
||||||
context::POST,
|
context::POST | context::WAIT_JOIN,
|
||||||
timeout_worker
|
timeout_worker
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
__attribute__((destructor))
|
||||||
|
timeout_terminate()
|
||||||
|
{
|
||||||
|
timeout_context.terminate();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
__attribute__((noreturn))
|
__attribute__((noreturn))
|
||||||
timeout_worker()
|
timeout_worker()
|
||||||
|
|
Loading…
Reference in a new issue