|
HikoGUI
A low latency retained GUI
|
#include <hikogui/concurrency/wfree_idle_count.hpp>
Public Member Functions | |
| wfree_idle_count (wfree_idle_count const &)=delete | |
| wfree_idle_count (wfree_idle_count &&)=delete | |
| wfree_idle_count & | operator= (wfree_idle_count const &)=delete |
| wfree_idle_count & | operator= (wfree_idle_count &&)=delete |
| hi_force_inline bool | is_locked () const noexcept |
| Check if the critical section is locked. | |
| hi_force_inline void | lock () noexcept |
| Start the critical section. | |
| hi_force_inline void | unlock () noexcept |
| End the critical section. | |
| hi_force_inline uint64_t | operator* () const noexcept |
| Get the current idle-count. | |
Counts how many times a critical section was idle.
A reader thread.
A write thread.
|
inlinenoexcept |
Check if the critical section is locked.
true when inside a critical section.
|
inlinenoexcept |
Start the critical section.
|
inlinenoexcept |
Get the current idle-count.
|
inlinenoexcept |
End the critical section.