add unicode compatible file_lock for Windows

boost::interprocess::file_lock cannot open the files that contain characters which cannot be parsed by the user's code page on Windows.
This commit add a new class to handle those specific file for Windows.
This commit is contained in:
Chun Kuan Lee
2018-07-25 17:33:22 +08:00
parent f180e81d57
commit 1661a472b8
5 changed files with 114 additions and 16 deletions

View File

@@ -51,13 +51,13 @@
#ifndef WIN32
#include <signal.h>
#include <sys/stat.h>
#endif
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/bind.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/thread.hpp>
#include <openssl/crypto.h>