hewei.it 5 ani în urmă
părinte
comite
fa6e1358fc
5 a modificat fișierele cu 6 adăugiri și 7 ștergeri
  1. 1 1
      BUILD.md
  2. 1 0
      base/hplatform.h
  3. 0 3
      base/hthreadpool.h
  4. 1 0
      unittest/threadpool_test.cpp
  5. 3 3
      utils/iniparser.h

+ 1 - 1
BUILD.md

@@ -3,7 +3,7 @@
 - c99
 - c++11
 
-gcc4.8+, msvc2013+
+gcc4.8+, msvc2015+
 
 ## Dependencies
 modify config.mk

+ 1 - 0
base/hplatform.h

@@ -61,6 +61,7 @@
 #endif
 // __clang__
 
+// HV_EXPORT
 #ifdef HV_STATICLIB
     #define HV_EXPORT
 #elif defined(OS_WIN)

+ 0 - 3
base/hthreadpool.h

@@ -12,9 +12,6 @@
 #include <memory>
 #include <utility>
 
-//#include "hlog.h"
-#include "hthread.h"
-
 class HThreadPool {
 public:
     using Task = std::function<void()>;

+ 1 - 0
unittest/threadpool_test.cpp

@@ -1,6 +1,7 @@
 #include <stdio.h>
 
 #include "hthreadpool.h"
+#include "hthread.h"
 #include "htime.h"
 
 void print_task(int i) {

+ 3 - 3
utils/iniparser.h

@@ -19,7 +19,7 @@ key = value # span
 ***********************************/
 
 class IniNode {
- public:
+public:
     enum Type {
         INI_NODE_TYPE_UNKNOWN,
         INI_NODE_TYPE_ROOT,
@@ -89,7 +89,7 @@ public:
 };
 
 class IniParser {
- public:
+public:
     IniParser();
     ~IniParser();
 
@@ -116,7 +116,7 @@ class IniParser {
     template<typename T>
     void Set(const string& key, const T& value, const string& section = "");
 
- private:
+private:
     string  _comment;
     string  _delim;
     string  _filepath;