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
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
absl::core_headers
|
|
|
|
absl::malloc_internal
|
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
|
|
|
synchronization
|
2018-12-13 19:30:03 +01:00
|
|
|
HDRS
|
|
|
|
"barrier.h"
|
|
|
|
"blocking_counter.h"
|
|
|
|
"internal/create_thread_identity.h"
|
|
|
|
"internal/kernel_timeout.h"
|
|
|
|
"internal/mutex_nonprod.inc"
|
|
|
|
"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
|
|
|
|
absl::base
|
|
|
|
absl::base_internal
|
|
|
|
absl::config
|
|
|
|
absl::core_headers
|
|
|
|
absl::dynamic_annotations
|
|
|
|
absl::malloc_internal
|
|
|
|
absl::stacktrace
|
|
|
|
absl::symbolize
|
|
|
|
absl::time
|
|
|
|
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::base
|
|
|
|
absl::core_headers
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
absl::core_headers
|
|
|
|
absl::memory
|
|
|
|
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
|
|
|
|
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::base
|
|
|
|
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::base
|
|
|
|
absl::core_headers
|
|
|
|
Threads::Threads
|
|
|
|
)
|