Skip to content

Commit

Permalink
Fix futex prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Nov 22, 2024
1 parent ca334a1 commit f581c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama.cpp/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static bool is_interacting = false;
static bool need_insert_eot = false;

extern "C" int nsync_futex_wake_(int *, int, char);
extern "C" int nsync_futex_wait_(int *, int, char, const struct timespec *);
extern "C" int nsync_futex_wait_(int *, int, char, int, const struct timespec *);

static bool file_exists(const std::string & path) {
std::ifstream f(path.c_str());
Expand Down Expand Up @@ -100,7 +100,7 @@ static int is_killed;

static void *safe_sigint_handler(void *arg) {
while (!is_killed)
nsync_futex_wait_(&is_killed, 0, 0, 0);
nsync_futex_wait_(&is_killed, 0, 0, 0, 0);
console::cleanup();
printf("\n");
llama_print_timings(*g_ctx);
Expand Down

0 comments on commit f581c40

Please sign in to comment.