-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
The Zephyr RTOS shall provide a mutex that allows threads to obtain mutually exclusive access to a shared resource.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
The Zephyr RTOS shall provide a mechanism to define and initialize a mutex at compile time.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
The Zephyr RTOS shall provide a mechanism to initialize a mutex at run time.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
The Zephyr RTOS shall provide a mechanism for a thread to lock a mutex and become its owner.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
While a mutex is not owned by any thread, a thread that locks it shall acquire ownership of the mutex.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
While a mutex is owned by another thread, a thread that attempts to lock it shall be blocked until the mutex becomes available or the specified timeout elapses.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
When locking a mutex, the Zephyr RTOS shall accept a timeout that specifies the maximum time to wait for the mutex to become available.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
When a mutex does not become available within the specified time, the Zephyr RTOS shall return an error indicating that the mutex was not locked.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
While a thread owns a mutex, the Zephyr RTOS shall allow that thread to lock the same mutex again, and shall require the thread to unlock it the same number of times before it is released.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
The Zephyr RTOS shall provide a mechanism for the owning thread to unlock a mutex.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
If a thread that does not own a mutex attempts to unlock it, then the Zephyr RTOS shall return an error and shall not release the mutex.
-
13.1. Mutex ZEP-SYRS-13 The Zephyr RTOS shall provide an interface for managing communication between threads.
While a higher-priority thread is blocked waiting on a mutex, the Zephyr RTOS shall raise the priority of the owning thread to that of the highest-priority waiting thread until the mutex is released.