Skip to main content

mesa3d_util/sys/stub/
wait_context.rs

1// Copyright 2025 Google
2// SPDX-License-Identifier: MIT
3
4use crate::MesaError;
5use crate::MesaResult;
6use crate::OwnedDescriptor;
7use crate::WaitEvent;
8use crate::WaitTimeout;
9
10pub struct WaitContext;
11
12impl WaitContext {
13    pub fn new() -> MesaResult<WaitContext> {
14        Err(MesaError::Unsupported)
15    }
16
17    pub fn add(&mut self, _connection_id: u64, _descriptor: &OwnedDescriptor) -> MesaResult<()> {
18        Err(MesaError::Unsupported)
19    }
20
21    pub fn wait(&mut self, _timeout: WaitTimeout) -> MesaResult<Vec<WaitEvent>> {
22        Err(MesaError::Unsupported)
23    }
24
25    pub fn delete(&mut self, _descriptor: &OwnedDescriptor) -> MesaResult<()> {
26        Err(MesaError::Unsupported)
27    }
28}