minor fixes

This commit is contained in:
Akash Mozumdar 2018-07-20 17:36:58 -04:00
parent a290c36b52
commit 9dfebf7eac
2 changed files with 24 additions and 20 deletions

View File

@ -18,6 +18,8 @@ set(vnrhost_src
textthread.cc textthread.cc
) )
include_directories(../)
add_library(vnrhost SHARED ${vnrhost_src}) add_library(vnrhost SHARED ${vnrhost_src})
set_target_properties(vnrhost PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS) set_target_properties(vnrhost PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)

View File

@ -8,6 +8,8 @@
# pragma warning(disable:4800) // C4800: forcing value to bool # pragma warning(disable:4800) // C4800: forcing value to bool
#endif // _MSC_VER #endif // _MSC_VER
// Artikash 7/20/2018: these are similar to std::lock guard but use Winapi objects
class MutexLocker class MutexLocker
{ {
HANDLE m; HANDLE m;