You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: vsync_macos.rs
    path of file: ./repos/neovide/src/renderer/vsync
    
    the code of the file until where you have to start completion: use log::{error, trace, warn};
use std::sync::{
    atomic::{AtomicBool, Orderin
    
    pub fn wait_for_vsync(&mut self) {}

    pub fn request_redraw(&mut self) {
        self.redraw_requested.store(true, Ordering::Relaxed);
    }

    pub fn update(&mut self, context: &WindowedContext) {
        let new_display = get_display_id_of_window(context.window());
        if new_display != self.old_display {
            trace!("Window moved to a new screen, try to re-create the display link.");
            self.create_display_link(context);
        }
    }
}