| 522 | foreground_locked.store(false, std::memory_order_release); |
| 523 | } |
| 524 | void background_unlock() { |
| 525 | background_locked.store(false, std::memory_order_release); |
| 526 | } |
| 527 | }; |
| 528 | |
| 529 | static spinlock vcpu_list_lock; // lock when add, remove, iterate next |