semf
criticalsection.h
Go to the documentation of this file.
1
10#ifndef SEMF_SYSTEM_CRITICALSECTION_H_
11#define SEMF_SYSTEM_CRITICALSECTION_H_
12
13namespace semf
14{
19{
20public:
23 virtual ~CriticalSection() = default;
24
26 static void enter();
28 static void exit();
30 virtual void halEnter() = 0;
32 virtual void halExit() = 0;
33
34private:
36 static CriticalSection* m_criticalSection;
37};
38} /* namespace semf */
39#endif /* SEMF_SYSTEM_CRITICALSECTION_H_ */
Class for handle CriticalSections.
virtual ~CriticalSection()=default
virtual void halExit()=0
virtual void halEnter()=0