diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/threading | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/threading')
27 files changed, 343 insertions, 0 deletions
diff --git a/library/cpp/threading/atomic/ut/ya.make b/library/cpp/threading/atomic/ut/ya.make new file mode 100644 index 0000000000..fe2a5ac8f9 --- /dev/null +++ b/library/cpp/threading/atomic/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/atomic) + +SRCS( + bool_ut.cpp +) + +END() diff --git a/library/cpp/threading/atomic/ya.make b/library/cpp/threading/atomic/ya.make new file mode 100644 index 0000000000..e4dd81d9d3 --- /dev/null +++ b/library/cpp/threading/atomic/ya.make @@ -0,0 +1,15 @@ +LIBRARY() + +SRCS( + bool.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/chunk_queue/ut/ya.make b/library/cpp/threading/chunk_queue/ut/ya.make new file mode 100644 index 0000000000..a58422ce02 --- /dev/null +++ b/library/cpp/threading/chunk_queue/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/chunk_queue) + +SRCS( + queue_ut.cpp +) + +END() diff --git a/library/cpp/threading/chunk_queue/ya.make b/library/cpp/threading/chunk_queue/ya.make new file mode 100644 index 0000000000..a0d7c556ef --- /dev/null +++ b/library/cpp/threading/chunk_queue/ya.make @@ -0,0 +1,15 @@ +LIBRARY() + +SRCS( + queue.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/equeue/ut/ya.make b/library/cpp/threading/equeue/ut/ya.make new file mode 100644 index 0000000000..60bc0aa604 --- /dev/null +++ b/library/cpp/threading/equeue/ut/ya.make @@ -0,0 +1,13 @@ +UNITTEST() + +PEERDIR( + ADDINCL library/cpp/threading/equeue +) + +SRCDIR(library/cpp/threading/equeue) + +SRCS( + equeue_ut.cpp +) + +END() diff --git a/library/cpp/threading/equeue/ya.make b/library/cpp/threading/equeue/ya.make new file mode 100644 index 0000000000..445797aa12 --- /dev/null +++ b/library/cpp/threading/equeue/ya.make @@ -0,0 +1,16 @@ +LIBRARY() + +SRCS( + equeue.h + equeue.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/future/mt_ut/ya.make b/library/cpp/threading/future/mt_ut/ya.make new file mode 100644 index 0000000000..fee088813a --- /dev/null +++ b/library/cpp/threading/future/mt_ut/ya.make @@ -0,0 +1,12 @@ +UNITTEST_FOR(library/cpp/threading/future) + +SRCS( + future_mt_ut.cpp +) + +IF(SANITIZER_TYPE) + SIZE(MEDIUM) +ENDIF() + + +END() diff --git a/library/cpp/threading/future/perf/ya.make b/library/cpp/threading/future/perf/ya.make new file mode 100644 index 0000000000..0677420107 --- /dev/null +++ b/library/cpp/threading/future/perf/ya.make @@ -0,0 +1,11 @@ +Y_BENCHMARK(library-threading-future-perf) + +SRCS( + main.cpp +) + +PEERDIR( + library/cpp/threading/future +) + +END() diff --git a/library/cpp/threading/future/ut/ya.make b/library/cpp/threading/future/ut/ya.make new file mode 100644 index 0000000000..7b18274169 --- /dev/null +++ b/library/cpp/threading/future/ut/ya.make @@ -0,0 +1,10 @@ +UNITTEST_FOR(library/cpp/threading/future) + +SRCS( + async_semaphore_ut.cpp + async_ut.cpp + future_ut.cpp + legacy_future_ut.cpp +) + +END() diff --git a/library/cpp/threading/future/ya.make b/library/cpp/threading/future/ya.make new file mode 100644 index 0000000000..32b54ff518 --- /dev/null +++ b/library/cpp/threading/future/ya.make @@ -0,0 +1,25 @@ +SUBSCRIBER( + swarmer +) + +LIBRARY() + +SRCS( + async_semaphore.cpp + async.cpp + core/future.cpp + core/fwd.cpp + fwd.cpp + wait/fwd.cpp + wait/wait.cpp + wait/wait_group.cpp + wait/wait_policy.cpp +) + +END() + +RECURSE( + mt_ut + perf + ut +) diff --git a/library/cpp/threading/hot_swap/ya.make b/library/cpp/threading/hot_swap/ya.make new file mode 100644 index 0000000000..82eb6490a4 --- /dev/null +++ b/library/cpp/threading/hot_swap/ya.make @@ -0,0 +1,11 @@ +LIBRARY() + +SRCS( + hot_swap.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() diff --git a/library/cpp/threading/light_rw_lock/bench/ya.make b/library/cpp/threading/light_rw_lock/bench/ya.make new file mode 100644 index 0000000000..297cfe1d0a --- /dev/null +++ b/library/cpp/threading/light_rw_lock/bench/ya.make @@ -0,0 +1,11 @@ +PROGRAM(lightrwlock_test) + +SRCS( + lightrwlock_test.cpp +) + +PEERDIR( + library/cpp/threading/light_rw_lock +) + +END() diff --git a/library/cpp/threading/light_rw_lock/ut/ya.make b/library/cpp/threading/light_rw_lock/ut/ya.make new file mode 100644 index 0000000000..780dd65803 --- /dev/null +++ b/library/cpp/threading/light_rw_lock/ut/ya.make @@ -0,0 +1,11 @@ +UNITTEST_FOR(library/cpp/threading/light_rw_lock) + +SRCS( + rwlock_ut.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() diff --git a/library/cpp/threading/light_rw_lock/ya.make b/library/cpp/threading/light_rw_lock/ya.make new file mode 100644 index 0000000000..a2452336c3 --- /dev/null +++ b/library/cpp/threading/light_rw_lock/ya.make @@ -0,0 +1,13 @@ +LIBRARY() + +SRCS( + lightrwlock.cpp + lightrwlock.h +) + +END() + +RECURSE( + bench + ut +) diff --git a/library/cpp/threading/local_executor/ut/ya.make b/library/cpp/threading/local_executor/ut/ya.make new file mode 100644 index 0000000000..c571115f60 --- /dev/null +++ b/library/cpp/threading/local_executor/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/local_executor) + +SRCS( + local_executor_ut.cpp +) + +END() diff --git a/library/cpp/threading/local_executor/ya.make b/library/cpp/threading/local_executor/ya.make new file mode 100644 index 0000000000..2ccaa3031a --- /dev/null +++ b/library/cpp/threading/local_executor/ya.make @@ -0,0 +1,18 @@ +LIBRARY() + +SRCS( + local_executor.cpp + tbb_local_executor.cpp +) + +PEERDIR( + contrib/libs/tbb + library/cpp/threading/future + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/mux_event/ya.make b/library/cpp/threading/mux_event/ya.make new file mode 100644 index 0000000000..0e112b5ef9 --- /dev/null +++ b/library/cpp/threading/mux_event/ya.make @@ -0,0 +1,11 @@ +LIBRARY() + +SRCS( + mux_event.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() diff --git a/library/cpp/threading/poor_man_openmp/ut/ya.make b/library/cpp/threading/poor_man_openmp/ut/ya.make new file mode 100644 index 0000000000..570b8788f0 --- /dev/null +++ b/library/cpp/threading/poor_man_openmp/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/poor_man_openmp) + +SRCS( + thread_helper_ut.cpp +) + +END() diff --git a/library/cpp/threading/poor_man_openmp/ya.make b/library/cpp/threading/poor_man_openmp/ya.make new file mode 100644 index 0000000000..976b2b6b3c --- /dev/null +++ b/library/cpp/threading/poor_man_openmp/ya.make @@ -0,0 +1,15 @@ +LIBRARY() + +SRCS( + thread_helper.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/queue/ut/ya.make b/library/cpp/threading/queue/ut/ya.make new file mode 100644 index 0000000000..28246305df --- /dev/null +++ b/library/cpp/threading/queue/ut/ya.make @@ -0,0 +1,14 @@ +UNITTEST_FOR(library/cpp/threading/queue) + +ALLOCATOR(B) + +SRCS( + basic_ut.cpp + queue_ut.cpp + tune_ut.cpp + unordered_ut.cpp + ut_helpers.cpp + ut_helpers.h +) + +END() diff --git a/library/cpp/threading/queue/ya.make b/library/cpp/threading/queue/ya.make new file mode 100644 index 0000000000..507c80b072 --- /dev/null +++ b/library/cpp/threading/queue/ya.make @@ -0,0 +1,24 @@ +LIBRARY() + +SRCS( + mpmc_unordered_ring.cpp + mpmc_unordered_ring.h + mpsc_htswap.cpp + mpsc_htswap.h + mpsc_intrusive_unordered.cpp + mpsc_intrusive_unordered.h + mpsc_read_as_filled.cpp + mpsc_read_as_filled.h + mpsc_vinfarr_obstructive.cpp + mpsc_vinfarr_obstructive.h +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/skip_list/perf/ya.make b/library/cpp/threading/skip_list/perf/ya.make new file mode 100644 index 0000000000..476d2eaff4 --- /dev/null +++ b/library/cpp/threading/skip_list/perf/ya.make @@ -0,0 +1,13 @@ +PROGRAM(skiplist-perf) + +PEERDIR( + library/cpp/charset + library/cpp/getopt/small + library/cpp/threading/skip_list +) + +SRCS( + main.cpp +) + +END() diff --git a/library/cpp/threading/skip_list/ut/ya.make b/library/cpp/threading/skip_list/ut/ya.make new file mode 100644 index 0000000000..6748e4e43a --- /dev/null +++ b/library/cpp/threading/skip_list/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/skip_list) + +SRCS( + skiplist_ut.cpp +) + +END() diff --git a/library/cpp/threading/skip_list/ya.make b/library/cpp/threading/skip_list/ya.make new file mode 100644 index 0000000000..0c3f91046e --- /dev/null +++ b/library/cpp/threading/skip_list/ya.make @@ -0,0 +1,16 @@ +LIBRARY() + +SRCS( + skiplist.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE( + perf + ut +) diff --git a/library/cpp/threading/task_scheduler/ut/ya.make b/library/cpp/threading/task_scheduler/ut/ya.make new file mode 100644 index 0000000000..93e77b8e9a --- /dev/null +++ b/library/cpp/threading/task_scheduler/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/threading/task_scheduler) + +SRCS( + task_scheduler_ut.cpp +) + +END() diff --git a/library/cpp/threading/task_scheduler/ya.make b/library/cpp/threading/task_scheduler/ya.make new file mode 100644 index 0000000000..33cb6bba2f --- /dev/null +++ b/library/cpp/threading/task_scheduler/ya.make @@ -0,0 +1,15 @@ +LIBRARY() + +SRCS( + task_scheduler.cpp +) + +PEERDIR( + library/cpp/deprecated/atomic +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/threading/thread_local/ya.make b/library/cpp/threading/thread_local/ya.make new file mode 100644 index 0000000000..676381ab0f --- /dev/null +++ b/library/cpp/threading/thread_local/ya.make @@ -0,0 +1,12 @@ +LIBRARY() + +PEERDIR( + library/cpp/threading/hot_swap + library/cpp/threading/skip_list +) + +GENERATE_ENUM_SERIALIZATION(thread_local.h) + +SRCS(thread_local.cpp) + +END() |