Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lsk567 committed Aug 13, 2022
1 parent 2bb21ab commit 0bfa648
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/threaded/scheduler_QS.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ _lf_sched_instance_t* _lf_sched_instance;
* FIXME: Does the caller need to hold the mutex here?
*/
void _lf_sched_notify_workers() {
// Calculate the number of workers that we need to wake up, which is the
// Note: All threads are idle. Therefore, there is no need to lock the mutex
// while accessing the index for the current level.
size_t workers_to_awaken = _lf_sched_instance->_lf_sched_number_of_workers;
Expand Down Expand Up @@ -161,7 +160,7 @@ void _lf_sched_wait_for_work(size_t worker_number) {

// FIXME: There might be a better place to unlock the mutex.
lf_mutex_unlock(&mutex);
// FIXME: Can we move _lf_sched_notify_workers() here?
// FIXME: Can we move _lf_sched_notify_workers() here?
}

///////////////////// Scheduler Init and Destroy API /////////////////////////
Expand Down

0 comments on commit 0bfa648

Please sign in to comment.