Skip to content

Commit

Permalink
klib v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Nov 29, 2024
1 parent cb4d79e commit 72359e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if(NOT TARGET klib)
set(KLIB_BUILD_TESTS ON)
FetchContent_Declare(klib
GIT_REPOSITORY https://github.com/karnkaul/klib
GIT_TAG v0.1.0
GIT_TAG v0.1.1
GIT_SHALLOW TRUE
SOURCE_DIR "${ext_dir}/src/klib"
)
Expand Down
4 changes: 2 additions & 2 deletions cli/src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct Csv {
} // namespace

auto App::run(int const argc, char const* const* argv) -> int {
m_params.thread_count = std::uint8_t(klib::task::Queue::get_max_threads());
m_params.thread_count = std::uint8_t(klib::task::get_max_threads());

auto default_grammars = false;

Expand All @@ -47,7 +47,7 @@ auto App::run(int const argc, char const* const* argv) -> int {
.version = locc::version_v,
};

auto const parse_result = klib::args::parse_args(info, args, argc, argv);
auto const parse_result = klib::args::parse(info, args, argc, argv);
if (parse_result.early_return()) { return parse_result.get_return_code(); }

if (default_grammars) {
Expand Down
4 changes: 2 additions & 2 deletions gui/src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cstring>

namespace locc::gui {
Config::Modal::Modal() : m_thread_count(int(klib::task::Queue::get_max_threads())) {}
Config::Modal::Modal() : m_thread_count(int(klib::task::get_max_threads())) {}

void Config::Modal::open_on_next_update(Config config) {
this->config = std::move(config);
Expand Down Expand Up @@ -41,7 +41,7 @@ auto Config::Modal::update() -> bool {
}

void Config::Modal::inspect() {
auto const max_threads = int(klib::task::Queue::get_max_threads());
auto const max_threads = int(klib::task::get_max_threads());
m_thread_count = int(config.thread_count);
ImGui::SetNextItemWidth(140.0f);
if (ImGui::SliderInt("Threads", &m_thread_count, 2, max_threads)) { config.thread_count = klib::task::ThreadCount(m_thread_count); }
Expand Down

0 comments on commit 72359e1

Please sign in to comment.