| 981 | } |
| 982 | |
| 983 | inline bool try_lock(void) { |
| 984 | # if ELPP_OS_UNIX |
| 985 | return (pthread_mutex_trylock(&m_underlyingMutex) == 0); |
| 986 | # elif ELPP_OS_WINDOWS |
| 987 | return TryEnterCriticalSection(&m_underlyingMutex); |
| 988 | # endif // ELPP_OS_UNIX |
| 989 | } |
| 990 | |
| 991 | inline void unlock(void) { |
| 992 | # if ELPP_OS_UNIX |
nothing calls this directly
no outgoing calls
no test coverage detected