mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
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:
parent
17195f082f
commit
1f2f08084b
1 changed files with 20 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue