xous 0.9.70

System call interface for Xous
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub enum AtomicOperation {
    /// Lock the mutex at the given address. If the Mutex is locked, this
    /// thread will block.
    MutexLock(usize /* Address */),

    /// Unlock the mutex at the given address. If arg 2 is `true`, then
    /// the next thread that is waiting on this Mutex will be activated.
    /// This can be used to prevent deadlocks. If no thread is waiting,
    /// then no thread switch is made and execution resumes in the current
    /// thread.
    MutexUnlock(usize /* Address */, bool /* Should Switch Immediately */),


    CondvarWait(usize /* Address */),
    CondvarWaitTimeout(usize /* Address */, usize /* Timeout (ms) */),
    CondvarNotifyOne(usize /* Address */),
    CondvarNotifyAll(usize /* Address */),
}