Skip to content

Commit

Permalink
static inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-singer committed Jan 23, 2025
1 parent 8c3fab7 commit f153266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ static void do_what_it_says(ReadyDeque *deques, __cilkrts_worker *w,
} while (t);
}

inline void boss_scheduler(__cilkrts_worker *w);
static inline void boss_scheduler(__cilkrts_worker *w);

// Thin wrapper around do_what_it_says to allow the boss thread to execute the
// Cilk computation until it would enter the work-stealing loop.
Expand All @@ -1400,7 +1400,7 @@ void do_what_it_says_boss(__cilkrts_worker *w, Closure *t) {
boss_scheduler(w);
}

inline void boss_scheduler(__cilkrts_worker *w) {
static inline void boss_scheduler(__cilkrts_worker *w) {
global_state *const rts = w->g;

CILK_START_TIMING(w, INTERVAL_SCHED);
Expand All @@ -1426,7 +1426,7 @@ inline void boss_scheduler(__cilkrts_worker *w) {
__builtin_longjmp(rts->boss_ctx, 1);
}

void non_boss_scheduler(__cilkrts_worker *w) {
static inline void non_boss_scheduler(__cilkrts_worker *w) {
CILK_START_TIMING(w, INTERVAL_SCHED);
worker_change_state(w, WORKER_SCHED);
global_state *const rts = w->g;
Expand Down

0 comments on commit f153266

Please sign in to comment.