Dev Essential
Loading...
Searching...
No Matches
fast_mutex.h
Go to the documentation of this file.
1
14
15#ifndef A_UTIL_UTIL_CONCURRENCY_FAST_MUTEX_HEADER_INCLUDED
16#define A_UTIL_UTIL_CONCURRENCY_FAST_MUTEX_HEADER_INCLUDED
17
19
20namespace a_util {
21namespace concurrency {
24public: // types
26 typedef void* native_handle_type;
27
28public:
31
34
36 void lock();
37
42 bool try_lock();
43
45 void unlock();
46
54
55private:
56 class Implementation;
58};
59
60} // namespace concurrency
61} // namespace a_util
62
63#endif // A_UTIL_UTIL_CONCURRENCY_FAST_MUTEX_HEADER_INCLUDED
void unlock()
Unlock the mutex.
void * native_handle_type
Type of a native handle.
Definition fast_mutex.h:26
void lock()
Lock the mutex.
native_handle_type native_handle()
Definition stack_ptr_decl.h:32
Definition concurrency.h:24
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24