Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wisp] Fix wisp poller dead lock in PUSH scheduling policy. #166

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ private void recordTaskByFD(int fd, WispTask task, int events) {
if (fd < LOW_FD_BOUND) {
getFd2TaskLow(events)[fd] = task;
} else {
WispCarrier carrier = WispCarrier.current();
final boolean isInCritical0 = carrier.isInCritical;
carrier.isInCritical = true;
getFd2TaskHigh(events).put(fd, task);
carrier.isInCritical = isInCritical0;
}
}

Expand All @@ -192,7 +196,11 @@ private WispTask removeTaskByFD(int fd, int events) {
task = fd2TaskLow[fd];
fd2TaskLow[fd] = null;
} else {
WispCarrier carrier = WispCarrier.current();
final boolean isInCritical0 = carrier.isInCritical;
carrier.isInCritical = true;
task = getFd2TaskHigh(events).remove(fd);
carrier.isInCritical = isInCritical0;
}
return task;
}
Expand Down
Loading