20 #ifndef BUILDCACHE_FILE_LOCK_HPP_
21 #define BUILDCACHE_FILE_LOCK_HPP_
72 explicit file_lock_t(
const std::string& path,
const bool remote_lock);
93 using file_handle_t =
void*;
94 using mutex_handle_t =
void*;
97 using file_handle_t = int;
98 using mutex_handle_t =
void*;
101 static file_handle_t invalid_file_handle() {
103 return reinterpret_cast<void*
>(-1);
109 static mutex_handle_t invalid_mutex_handle() {
118 file_handle_t m_file_handle = invalid_file_handle();
119 mutex_handle_t m_mutex_handle = invalid_mutex_handle();
120 bool m_has_lock =
false;
126 #endif // BUILDCACHE_FILE_LOCK_HPP_