reifydb-runtime 0.5.6

Runtime infrastructure for ReifyDB
Documentation
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use std::time::Duration;

use crate::sync::mutex::MutexGuard;

#[derive(Debug)]
pub struct CondvarInner;

impl CondvarInner {
	pub fn new() -> Self {
		Self
	}

	pub fn wait<'a, T>(&self, _guard: &mut MutexGuard<'a, T>) {}

	pub fn wait_for<'a, T>(&self, _guard: &mut MutexGuard<'a, T>, _timeout: Duration) -> bool {
		true
	}

	pub fn notify_one(&self) {}

	pub fn notify_all(&self) {}
}

impl Default for CondvarInner {
	fn default() -> Self {
		Self::new()
	}
}