[A]Support for windows.

[B]Modify README.md.
This commit is contained in:
Livox-SDK
2019-02-01 20:41:45 +08:00
parent 1415a19477
commit 8135095c8a
11 changed files with 153 additions and 42 deletions
+6
View File
@@ -39,8 +39,14 @@ bool IOLoop::Init() {
if (mem_pool_ == NULL) {
return false;
}
#ifdef WIN32
apr_status_t rv =
apr_pollset_create(&pollset_, kMaxPollCount, mem_pool_, APR_POLLSET_WAKEABLE);
#else
apr_status_t rv =
apr_pollset_create(&pollset_, kMaxPollCount, mem_pool_, APR_POLLSET_THREADSAFE | APR_POLLSET_WAKEABLE);
#endif
if (rv != APR_SUCCESS) {
LOG_ERROR << PrintAPRStatus(rv) << std::endl;
return false;