gc.h 347 B

12345678910111213141516171819
  1. #ifndef __GARBAGECOLLECT_H
  2. #define __GARBAGECOLLECT_H
  3. #include <api/syscb/callbacks/gccb.h>
  4. class GarbageCollector : public GarbageCollectCallbackI {
  5. public:
  6. GarbageCollector();
  7. virtual ~GarbageCollector();
  8. virtual int gccb_onGarbageCollect();
  9. private:
  10. uint32_t last;
  11. };
  12. extern GarbageCollector *garbageCollector;
  13. #endif