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:
parent
4b7d9587f4
commit
927dd473eb
6 changed files with 221 additions and 3 deletions
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue