File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,20 @@ SET(STDTENSOR_GIT_URL
21
21
https://github.com/stdml/stdtensor.git
22
22
CACHE STRING "URL for clone stdtensor" )
23
23
24
+ SET (STDTENSOR_GIT_TAG
25
+ "v0.9.1"
26
+ CACHE STRING "git tag for checkout stdtensor" )
27
+
24
28
EXTERNALPROJECT_ADD (
25
29
stdtensor-repo
26
30
LOG_DOWNLOAD ON
27
31
LOG_INSTALL ON
28
32
LOG_CONFIGURE ON
29
33
GIT_REPOSITORY ${STDTENSOR_GIT_URL}
30
- GIT_TAG v0.9.0
34
+ GIT_TAG ${STDTENSOR_GIT_TAG}
31
35
PREFIX ${THIRDPARTY_PREFIX}
32
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${THIRDPARTY_PREFIX} -DBUILD_TESTS=0
33
- -DBUILD_EXAMPLES=0 )
36
+ CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${THIRDPARTY_PREFIX} -DBUILD_TESTS=0 #
37
+ -DUSE_STRICT=0 -DBUILD_LIB=0 - DBUILD_EXAMPLES=0 )
34
38
35
39
INCLUDE_DIRECTORIES (${THIRDPARTY_PREFIX} /include )
36
40
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ simple_thread_pool::simple_thread_pool(std::size_t sz)
13
13
{
14
14
std::unique_lock<std::mutex> lock (ptr->queue_mu );
15
15
ptr->cv .wait (lock, [&] {
16
- return ptr->shutdown or !ptr->queue .empty ();
16
+ return ptr->shutdown || !ptr->queue .empty ();
17
17
});
18
- if (ptr->shutdown and ptr->queue .empty ())
18
+ if (ptr->shutdown && ptr->queue .empty ())
19
19
return ; // Conditions to let the thread go.
20
20
task = std::move (ptr->queue .front ());
21
21
ptr->queue .pop ();
@@ -45,4 +45,4 @@ simple_thread_pool::~simple_thread_pool()
45
45
m_shared_src->shutdown = true ;
46
46
std::atomic_signal_fence (std::memory_order_seq_cst);
47
47
m_shared_src->cv .notify_all ();
48
- }
48
+ }
You can’t perform that action at this time.
0 commit comments