27#include "rtos/mbed_rtos_types.h"
28#include "rtos/internal/mbed_rtos1_types.h"
29#include "rtos/internal/mbed_rtos_storage.h"
30#include "rtos/Kernel.h"
32#include "platform/NonCopyable.h"
33#include "platform/ScopedLock.h"
34#include "platform/mbed_toolchain.h"
111 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0",
"Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`.")
138 MBED_DEPRECATED_SINCE("mbed-os-6.0.0", "Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s` rather than `Kernel::
get_ms_count() + 5000`.")
174 void constructor(const
char *name =
nullptr);
178 mbed_rtos_storage_mutex_t _obj_mem;
Prevents generation of copy constructor and copy assignment operator in derived classes.
RAII-style mechanism for owning a lock of Lockable object for the duration of a scoped block.
The ConditionVariable class is a synchronization primitive that allows threads to wait until a partic...
The Mutex class is used to synchronize the execution of threads.
bool trylock_until(uint64_t millisec)
Try to lock the mutex until specified time.
Mutex()
Create and Initialize a Mutex object.
bool trylock_for(uint32_t millisec)
Try to lock the mutex for a specified time.
Mutex(const char *name)
Create and Initialize a Mutex object.
bool trylock()
Try to lock the mutex, and return immediately.
void unlock()
Unlock the mutex that has previously been locked by the same thread.
osThreadId_t get_owner()
Get the owner the this mutex.
void lock()
Wait until a Mutex becomes available.
uint64_t get_ms_count(void)
Generic thread functions.
mbed::ScopedLock< Mutex > ScopedMutexLock
Typedef for the mutex lock.