vm-virtio: Rename epoll_thread to epoll_threads

Now that we unified epoll_thread to potentially be a vector of threads,
it makes sense to make it a plural field.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-01-27 14:14:56 +01:00
committed by Sebastien Boeuf
parent f648f2856d
commit c06a827cbb
11 changed files with 40 additions and 40 deletions

View File

@@ -136,9 +136,9 @@ macro_rules! virtio_pausable_inner {
VirtioDeviceType::from(self.device_type())
);
self.paused.store(false, Ordering::SeqCst);
if let Some(epoll_thread) = &self.epoll_thread {
for i in 0..epoll_thread.len() {
epoll_thread[i].thread().unpark();
if let Some(epoll_threads) = &self.epoll_threads {
for i in 0..epoll_threads.len() {
epoll_threads[i].thread().unpark();
}
}
@@ -168,9 +168,9 @@ macro_rules! virtio_pausable_inner {
);
self.paused.store(false, Ordering::SeqCst);
if let Some(epoll_thread) = &self.epoll_thread {
for i in 0..epoll_thread.len() {
epoll_thread[i].thread().unpark();
if let Some(epoll_threads) = &self.epoll_threads {
for i in 0..epoll_threads.len() {
epoll_threads[i].thread().unpark();
}
}