1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Kernel: Support lazy sweeping simple GC. v5.0.69

This commit is contained in:
winlin 2022-09-30 18:33:29 +08:00
parent 4b7d9587f4
commit 927dd473eb
6 changed files with 221 additions and 3 deletions

View file

@ -406,6 +406,28 @@ void SrsResourceManager::dispose(ISrsResource* c)
}
}
SrsSweepGc::SrsSweepGc()
{
}
SrsSweepGc::~SrsSweepGc()
{
}
srs_error_t SrsSweepGc::start()
{
srs_error_t err = srs_success;
return err;
}
void SrsSweepGc::remove(ISrsLazyResource* c)
{
// TODO: FIXME: MUST lazy sweep.
srs_freep(c);
}
ISrsLazyGc* _srs_gc = NULL;
ISrsExpire::ISrsExpire()
{
}