xous-api-ticktimer: add calls for freeing objects

Add calls to free Mutexes and Condvars. These will go in a destructor,
and will remove any trace of these mutexes within the ticktimer server.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2023-01-29 18:31:44 +08:00
parent 17195f082f
commit 1f2f08084b

View file

@ -50,6 +50,26 @@ pub enum Opcode {
/// *arg2*: The number of conditions to notify
NotifyCondition = 9,
/// Free a Mutex
///
/// This call will free a Mutex that was previously Locked or Unlocked.
/// Doing so causes the Mutex to be unlocked.
///
/// # Arguments
///
/// *arg1*: The integer that matches the Mutex value
FreeMutex = 10,
/// Free a Condition
///
/// This call will free a Condition that was previously waited upon. All
/// pending threads will be forgotten.
///
/// # Arguments
///
/// *arg1*: The integer that matches the Condition value
FreeCondition = 11,
/// Invalid call -- an error occurred decoding the opcode
InvalidCall = u32::MAX as usize,
}