12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include "Betriebssystem.h"
- namespace Framework
- {
- class Thread;
- class Critical
- {
- private:
- CRITICAL_SECTION cs;
- Thread *owner;
- int lockCount;
- int id;
- public:
-
- __declspec( dllexport ) Critical();
-
- __declspec( dllexport ) ~Critical();
-
- __declspec( dllexport ) void lock();
-
- __declspec( dllexport ) bool tryLock();
-
- __declspec( dllexport ) void unlock();
-
- __declspec( dllexport ) bool isLocked() const;
-
- __declspec( dllexport ) const Thread *zOwner() const;
- };
- }
|