File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
build :
15
+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
16
+ # You can convert this to a matrix build if you need cross-platform coverage.
17
+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
15
18
runs-on : windows-latest
16
19
17
- strategy :
18
- matrix :
19
- cpp_std : [ "11", "14", "17", "20" ]
20
- fail-fast : false
21
-
22
20
steps :
23
- - uses : actions/checkout@v2
21
+ - uses : actions/checkout@v2
22
+
23
+ - name : Configure CMake
24
+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
25
+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
26
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
24
27
25
- - name : Build
26
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
28
+ - name : Build
29
+ # Build your program with the given configuration
30
+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Original file line number Diff line number Diff line change 11
11
12
12
#include < set>
13
13
#include < mutex>
14
- #include < shared_mutex>
15
- #include < optional>
16
14
17
15
#include " GParamObject.h"
18
16
19
17
CGRAPH_NAMESPACE_BEGIN
20
18
21
19
class GParam : public GParamObject {
22
20
public:
23
- #if __cplusplus >= 201703L
21
+ #if __cplusplus >= 201703L && _CGRAPH_GPARAM_RWLOCK_ENABLE_
24
22
std::shared_mutex _param_shared_lock_; // 用于参数互斥的锁信息
25
23
#else
26
24
std::recursive_mutex _param_shared_lock_;
You can’t perform that action at this time.
0 commit comments