summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/ticketholder_bm.cpp
diff options
context:
space:
mode:
authorJordi Olivares Provencio <jordi.olivares-provencio@mongodb.com>2023-01-16 14:27:02 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-16 15:52:08 +0000
commit85d7113ec73c259487e344a868858ceb833aeb86 (patch)
treeae2bf685f3ab53e1f799da0fc428a260bd718f4d /src/mongo/util/concurrency/ticketholder_bm.cpp
parent708be04d957045dc94673d32be87632044141f0d (diff)
downloadmongo-85d7113ec73c259487e344a868858ceb833aeb86.tar.gz
SERVER-72072 Integrate TicketBroker with PriorityTicketHolder
Diffstat (limited to 'src/mongo/util/concurrency/ticketholder_bm.cpp')
-rw-r--r--src/mongo/util/concurrency/ticketholder_bm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/concurrency/ticketholder_bm.cpp b/src/mongo/util/concurrency/ticketholder_bm.cpp
index 087f0aa4b40..62876c860de 100644
--- a/src/mongo/util/concurrency/ticketholder_bm.cpp
+++ b/src/mongo/util/concurrency/ticketholder_bm.cpp
@@ -196,6 +196,9 @@ BENCHMARK_TEMPLATE(BM_acquireAndRelease, SemaphoreTicketHolder, AdmissionsPriori
->Threads(kTickets)
->Threads(kThreadMax);
+// TODO SERVER-72616: Remove ifdefs once PriorityTicketHolder is available cross-platform.
+#ifdef __linux__
+
BENCHMARK_TEMPLATE(BM_acquireAndRelease, PriorityTicketHolder, AdmissionsPriority::kNormal)
->Threads(kThreadMin)
->Threads(kTickets)
@@ -219,6 +222,7 @@ BENCHMARK_TEMPLATE(BM_acquireAndRelease, PriorityTicketHolder, AdmissionsPriorit
->Threads(kTickets)
->Threads(kThreadMax);
+#endif
} // namespace
} // namespace mongo