Trait kernel::process_checker::AppUniqueness
source · pub trait AppUniqueness {
// Required method
fn different_identifier(
&self,
_process_a: &dyn Process,
_process_b: &dyn Process
) -> bool;
}
Expand description
Whether two processes have the same Application Identifier; two processes with the same Application Identifier cannot run concurrently.
Required Methods§
sourcefn different_identifier(
&self,
_process_a: &dyn Process,
_process_b: &dyn Process
) -> bool
fn different_identifier( &self, _process_a: &dyn Process, _process_b: &dyn Process ) -> bool
Returns whether process_a
and process_b
have a different identifier,
and so can run concurrently. If this returns false
, the kernel
will not run process_a
and process_b
at the same time.
Implementations on Foreign Types§
source§impl AppUniqueness for ()
impl AppUniqueness for ()
Default implementation.