mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +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 bool timeout_check();
|
||||
static void timeout_worker();
|
||||
context timeout_context
|
||||
static context timeout_context
|
||||
{
|
||||
"typing",
|
||||
256_KiB,
|
||||
context::POST,
|
||||
context::POST | context::WAIT_JOIN,
|
||||
timeout_worker
|
||||
};
|
||||
|
||||
static void
|
||||
__attribute__((destructor))
|
||||
timeout_terminate()
|
||||
{
|
||||
timeout_context.terminate();
|
||||
}
|
||||
|
||||
void
|
||||
__attribute__((noreturn))
|
||||
timeout_worker()
|
||||
|
|
Loading…
Reference in a new issue