File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ namespace mamba
71
71
}
72
72
73
73
// / @returns All `log_source` values as a range.
74
- inline constexpr auto all_log_sources () noexcept -> std::vector <log_source>
74
+ inline constexpr auto all_log_sources () noexcept -> std::initializer_list <log_source>
75
75
{
76
76
return { log_source::libmamba, log_source::libcurl, log_source::libsolv };
77
77
}
Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ namespace mamba::logging
24
24
// dont accept `constinit` here, so until this is fixed we'll lose performance using
25
25
// `std::mutex` when we mostly are reading data, not modifying,
26
26
// but at least we maintain correctness and avoid static-init fiasco.
27
- constinit util::synchronized_value<LoggingParams, std::mutex> logging_params;
27
+ #if defined(__APPLE__)
28
+ using params_mutex = std::mutex;
29
+ #else
30
+ using params_mutex = std::shared_mutex;
31
+ #endif
32
+ constinit util::synchronized_value<LoggingParams, params_mutex> logging_params;
28
33
29
34
// IMPRTANT NOTE:
30
35
// The handler MUST NOT be protected from concurrent calls at this level
You can’t perform that action at this time.
0 commit comments