Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstone committed Sep 15, 2024
1 parent c756274 commit 656819a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dependencies/concurrent
2 changes: 1 addition & 1 deletion dependencies/std_module
1 change: 1 addition & 0 deletions source/tm/ps_usage_stats/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ constexpr auto write_bytes(std::ostream & stream, T const & value, auto const ex
static_assert(!std::is_empty_v<T>);
static_assert(std::is_trivial_v<T>);
static_assert(sizeof(value) == expected_size);
static_assert(std::endian::native == std::endian::little);
stream.write(reinterpret_cast<char const *>(std::addressof(value)), sizeof(value));
}

Expand Down
4 changes: 2 additions & 2 deletions source/tm/test/ps_usage_stats/score_predict_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ auto score_predict_selection(ThreadCount const thread_count, std::filesystem::pa
auto const all_usage_stats = AllUsageStats(StatsForGeneration(stats_for_generation));
auto queue = concurrent::basic_blocking_queue<std::deque<std::filesystem::path>>(1000);
auto workers = containers::dynamic_array<std::jthread>(containers::generate_n(thread_count, [&] {
return bounded::no_lazy_construction(std::jthread([&](std::stop_token token) {
return std::jthread([&](std::stop_token token) {
while (auto input_file = queue.pop_one(token)) {
try {
auto const json = load_json_from_file(*input_file);
Expand Down Expand Up @@ -345,7 +345,7 @@ auto score_predict_selection(ThreadCount const thread_count, std::filesystem::pa
std::cerr << "Unable to process " << input_file->string() << ": " << ex.what() << ", skipping\n";
}
}
}));
});
}));
for (auto file : files_in_directory(input_directory)) {
queue.push(std::move(file));
Expand Down

0 comments on commit 656819a

Please sign in to comment.