aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/threading
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/threading')
-rw-r--r--library/cpp/threading/equeue/CMakeLists.txt8
-rw-r--r--library/cpp/threading/future/CMakeLists.txt15
-rw-r--r--library/cpp/threading/light_rw_lock/CMakeLists.txt8
-rw-r--r--library/cpp/threading/local_executor/CMakeLists.txt11
-rw-r--r--library/cpp/threading/poor_man_openmp/CMakeLists.txt8
-rw-r--r--library/cpp/threading/queue/CMakeLists.txt12
-rw-r--r--library/cpp/threading/task_scheduler/CMakeLists.txt8
7 files changed, 70 insertions, 0 deletions
diff --git a/library/cpp/threading/equeue/CMakeLists.txt b/library/cpp/threading/equeue/CMakeLists.txt
new file mode 100644
index 0000000000..6171b91354
--- /dev/null
+++ b/library/cpp/threading/equeue/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_library(cpp-threading-equeue)
+target_link_libraries(cpp-threading-equeue PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-equeue PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/equeue/equeue.cpp
+)
diff --git a/library/cpp/threading/future/CMakeLists.txt b/library/cpp/threading/future/CMakeLists.txt
new file mode 100644
index 0000000000..48f3998d54
--- /dev/null
+++ b/library/cpp/threading/future/CMakeLists.txt
@@ -0,0 +1,15 @@
+add_library(cpp-threading-future)
+target_link_libraries(cpp-threading-future PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-future PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/async.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/core/future.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/core/fwd.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/fwd.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/wait/fwd.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/wait/wait.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/wait/wait_group.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/future/wait/wait_policy.cpp
+)
diff --git a/library/cpp/threading/light_rw_lock/CMakeLists.txt b/library/cpp/threading/light_rw_lock/CMakeLists.txt
new file mode 100644
index 0000000000..5acf6f7955
--- /dev/null
+++ b/library/cpp/threading/light_rw_lock/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_library(cpp-threading-light_rw_lock)
+target_link_libraries(cpp-threading-light_rw_lock PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-light_rw_lock PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/light_rw_lock/lightrwlock.cpp
+)
diff --git a/library/cpp/threading/local_executor/CMakeLists.txt b/library/cpp/threading/local_executor/CMakeLists.txt
new file mode 100644
index 0000000000..7b23fb7936
--- /dev/null
+++ b/library/cpp/threading/local_executor/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_library(cpp-threading-local_executor)
+target_link_libraries(cpp-threading-local_executor PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ contrib-libs-tbb
+ cpp-threading-future
+)
+target_sources(cpp-threading-local_executor PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/local_executor/local_executor.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/local_executor/tbb_local_executor.cpp
+)
diff --git a/library/cpp/threading/poor_man_openmp/CMakeLists.txt b/library/cpp/threading/poor_man_openmp/CMakeLists.txt
new file mode 100644
index 0000000000..b52ff4f4bf
--- /dev/null
+++ b/library/cpp/threading/poor_man_openmp/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_library(cpp-threading-poor_man_openmp)
+target_link_libraries(cpp-threading-poor_man_openmp PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-poor_man_openmp PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/poor_man_openmp/thread_helper.cpp
+)
diff --git a/library/cpp/threading/queue/CMakeLists.txt b/library/cpp/threading/queue/CMakeLists.txt
new file mode 100644
index 0000000000..3404cae982
--- /dev/null
+++ b/library/cpp/threading/queue/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_library(cpp-threading-queue)
+target_link_libraries(cpp-threading-queue PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-queue PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/queue/mpmc_unordered_ring.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/queue/mpsc_htswap.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/queue/mpsc_intrusive_unordered.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/queue/mpsc_read_as_filled.cpp
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/queue/mpsc_vinfarr_obstructive.cpp
+)
diff --git a/library/cpp/threading/task_scheduler/CMakeLists.txt b/library/cpp/threading/task_scheduler/CMakeLists.txt
new file mode 100644
index 0000000000..ee3db14c8f
--- /dev/null
+++ b/library/cpp/threading/task_scheduler/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_library(cpp-threading-task_scheduler)
+target_link_libraries(cpp-threading-task_scheduler PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+)
+target_sources(cpp-threading-task_scheduler PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/threading/task_scheduler/task_scheduler.cpp
+)