1
0
Fork 0
forked from wry/wry

gfx-api: add support for syncobj synchronization

This commit is contained in:
Julian Orth 2026-03-01 20:29:53 +01:00
parent 80a69ba7ef
commit 7e6facf4e3
20 changed files with 323 additions and 159 deletions

View file

@ -64,12 +64,10 @@ impl EventfdCache {
}
impl Eventfd {
#[expect(dead_code)]
pub fn is_signaled(&self) -> bool {
self.signaled.get()
}
#[cfg_attr(not(test), expect(dead_code))]
pub async fn signaled(&self) -> Result<(), IoUringError> {
if self.signaled.get() {
return Ok(());
@ -79,7 +77,6 @@ impl Eventfd {
Ok(())
}
#[expect(dead_code)]
pub fn signaled_blocking(&self) -> Result<(), OsError> {
if self.signaled.get() {
return Ok(());