Function show_image::context [−][src]
pub fn context() -> ContextProxy
Get the global context to interact with existing windows or to create new windows.
If you manually spawn threads that try to access the context before calling run_context
, you introduce a race condition.
Instead, you should pass a function to run_context
or one of the variants.
Those functions take care to initialize the global context before running the user code.
Panics
This panics if the global context is not yet fully initialized.