2017-09-27 05:37:27 +02:00
|
|
|
#
|
|
|
|
# Copyright 2017 The Abseil Authors.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
2019-03-08 16:27:53 +01:00
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
2017-09-27 05:37:27 +02:00
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_library(
|
|
|
|
NAME
|
|
|
|
graphcycles_internal
|
|
|
|
HDRS
|
|
|
|
"internal/graphcycles.h"
|
|
|
|
SRCS
|
|
|
|
"internal/graphcycles.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_DEFAULT_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::base
|
|
|
|
absl::base_internal
|
2019-12-12 19:36:03 +01:00
|
|
|
absl::config
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::core_headers
|
|
|
|
absl::malloc_internal
|
2019-08-13 19:20:16 +02:00
|
|
|
absl::raw_logging_internal
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2019-09-05 11:54:58 +02:00
|
|
|
absl_cc_library(
|
|
|
|
NAME
|
|
|
|
kernel_timeout_internal
|
|
|
|
HDRS
|
|
|
|
"internal/kernel_timeout.h"
|
|
|
|
COPTS
|
|
|
|
${ABSL_DEFAULT_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::core_headers
|
|
|
|
absl::raw_logging_internal
|
|
|
|
absl::time
|
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_library(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
synchronization
|
2018-12-13 19:30:03 +01:00
|
|
|
HDRS
|
|
|
|
"barrier.h"
|
|
|
|
"blocking_counter.h"
|
|
|
|
"internal/create_thread_identity.h"
|
2020-11-21 14:43:54 +01:00
|
|
|
"internal/futex.h"
|
2018-12-13 19:30:03 +01:00
|
|
|
"internal/per_thread_sem.h"
|
|
|
|
"internal/waiter.h"
|
|
|
|
"mutex.h"
|
|
|
|
"notification.h"
|
|
|
|
SRCS
|
|
|
|
"barrier.cc"
|
|
|
|
"blocking_counter.cc"
|
|
|
|
"internal/create_thread_identity.cc"
|
|
|
|
"internal/per_thread_sem.cc"
|
|
|
|
"internal/waiter.cc"
|
|
|
|
"notification.cc"
|
|
|
|
"mutex.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_DEFAULT_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::graphcycles_internal
|
2019-09-05 11:54:58 +02:00
|
|
|
absl::kernel_timeout_internal
|
2019-07-18 18:04:43 +02:00
|
|
|
absl::atomic_hook
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::base
|
|
|
|
absl::base_internal
|
|
|
|
absl::config
|
|
|
|
absl::core_headers
|
|
|
|
absl::dynamic_annotations
|
|
|
|
absl::malloc_internal
|
2019-08-13 19:20:16 +02:00
|
|
|
absl::raw_logging_internal
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::stacktrace
|
|
|
|
absl::symbolize
|
|
|
|
absl::time
|
2019-03-28 19:12:19 +01:00
|
|
|
Threads::Threads
|
2018-12-13 19:30:03 +01:00
|
|
|
PUBLIC
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
barrier_test
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"barrier_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::time
|
|
|
|
gmock_main
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
blocking_counter_test
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"blocking_counter_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::time
|
|
|
|
gmock_main
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
graphcycles_test
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"internal/graphcycles_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::graphcycles_internal
|
|
|
|
absl::core_headers
|
2019-08-13 19:20:16 +02:00
|
|
|
absl::raw_logging_internal
|
2018-12-13 19:30:03 +01:00
|
|
|
gmock_main
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_library(
|
|
|
|
NAME
|
|
|
|
thread_pool
|
|
|
|
HDRS
|
|
|
|
"internal/thread_pool.h"
|
2019-04-23 21:04:13 +02:00
|
|
|
COPTS
|
|
|
|
${ABSL_DEFAULT_COPTS}
|
2018-12-13 19:30:03 +01:00
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::core_headers
|
|
|
|
TESTONLY
|
|
|
|
)
|
2017-09-27 05:37:27 +02:00
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
mutex_test
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"mutex_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::thread_pool
|
|
|
|
absl::base
|
2020-11-21 14:43:54 +01:00
|
|
|
absl::config
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::core_headers
|
|
|
|
absl::memory
|
2019-08-13 19:20:16 +02:00
|
|
|
absl::raw_logging_internal
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::time
|
|
|
|
gmock_main
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
notification_test
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"notification_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::time
|
|
|
|
gmock_main
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_library(
|
|
|
|
NAME
|
2017-09-27 05:37:27 +02:00
|
|
|
per_thread_sem_test_common
|
2018-12-13 19:30:03 +01:00
|
|
|
SRCS
|
|
|
|
"internal/per_thread_sem_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::base
|
2020-11-21 14:43:54 +01:00
|
|
|
absl::config
|
2018-12-13 19:30:03 +01:00
|
|
|
absl::strings
|
|
|
|
absl::time
|
|
|
|
gmock
|
|
|
|
TESTONLY
|
2017-09-27 05:37:27 +02:00
|
|
|
)
|
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
|
|
|
per_thread_sem_test
|
|
|
|
SRCS
|
|
|
|
"internal/per_thread_sem_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::per_thread_sem_test_common
|
|
|
|
absl::synchronization
|
|
|
|
absl::strings
|
|
|
|
absl::time
|
|
|
|
gmock_main
|
|
|
|
)
|
2017-09-27 05:37:27 +02:00
|
|
|
|
2018-12-13 19:30:03 +01:00
|
|
|
absl_cc_test(
|
|
|
|
NAME
|
|
|
|
lifetime_test
|
|
|
|
SRCS
|
|
|
|
"lifetime_test.cc"
|
|
|
|
COPTS
|
|
|
|
${ABSL_TEST_COPTS}
|
|
|
|
DEPS
|
|
|
|
absl::synchronization
|
|
|
|
absl::core_headers
|
2019-08-13 19:20:16 +02:00
|
|
|
absl::raw_logging_internal
|
2018-12-13 19:30:03 +01:00
|
|
|
)
|