//! This module provides PvmDiceThreadSafe. //! //! This wrapper was originally written to support a single PvmDice object being //! shared between an hwbcc server and an rpcbinder server running in the same //! TA and event loop. rpcbinder services are thread safe and so we need a version //! of PvmDice that is Send + Sync if we want to use it within the request path //! of one of those services. //! //! Trusty user space does not support multi-threading so we assume a Mutex will //! never be poisoned and call unwrap throughout.
usecrate::PvmDice; use hwbcc::srv::{HwBccOps, RequestContext}; use hwbcc::{HwBccError, HwBccMode}; use std::sync::{Arc, Mutex};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.