Skip to content

Commit

Permalink
fix cpu_getsched
Browse files Browse the repository at this point in the history
  • Loading branch information
hp77-creator committed Jun 10, 2024
1 parent 8b23a2d commit 708081e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/include/platform_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
}
int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask);
int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *mask);
int my_sched_getcpu();
#else
#error "Unsupported platform"
#endif

int my_sched_getcpu();
int get_current_cpu();
#endif

0 comments on commit 708081e

Please sign in to comment.