ReferenceCounter.h 419 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "Betriebssystem.h"
  3. namespace Framework
  4. {
  5. class ReferenceCounter
  6. {
  7. private:
  8. CRITICAL_SECTION *cs;
  9. int ref;
  10. public:
  11. DLLEXPORT ReferenceCounter();
  12. DLLEXPORT virtual ~ReferenceCounter();
  13. DLLEXPORT int getReferenceCount() const;
  14. DLLEXPORT ReferenceCounter* getThis();
  15. DLLEXPORT void* release();
  16. };
  17. } // namespace Framework