Merge pull request #38481 from RandomShaper/improve_yield

Fix object leaks caused by unfulfilled yields
This commit is contained in:
Rémi Verschelde 2020-05-09 22:02:52 +02:00 committed by GitHub
commit a4b829410c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 91 additions and 32 deletions

View file

@ -120,6 +120,9 @@ private:
public:
_FORCE_INLINE_ bool in_list() const { return _root; }
_FORCE_INLINE_ void remove_from_list() {
if (_root) _root->remove(this);
}
_FORCE_INLINE_ SelfList<T> *next() { return _next; }
_FORCE_INLINE_ SelfList<T> *prev() { return _prev; }
_FORCE_INLINE_ const SelfList<T> *next() const { return _next; }