MCPcopy Create free account
hub / github.com/Clarionos/clarion / unlock

Method unlock

libraries/fc/src/filesystem.cpp:568–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 }
567
568 void simple_lock_file::impl::unlock()
569 {
570#ifdef WIN32
571 CloseHandle(file_handle);
572 file_handle = INVALID_HANDLE_VALUE;
573 is_locked = false;
574#else
575 flock(file_handle, LOCK_UN);
576 close(file_handle);
577 file_handle = -1;
578 is_locked = false;
579#endif
580 }
581
582
583 simple_lock_file::simple_lock_file(const path& lock_file_path) :

Callers 2

locking_callbackMethod · 0.80
logMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected