You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@param millisec absolute timeout time, referenced to Kernel::get_ms_count()
113
128
@return true if the mutex was acquired, false otherwise.
@@ -117,9 +132,24 @@ class Mutex : private mbed::NonCopyable<Mutex> {
117
132
the lock attempt will time out earlier than specified.
118
133
119
134
@note You cannot call this function from ISR context.
135
+
@deprecated Pass a chrono time_point, not an integer millisecond count. For example use
136
+
`Kernel::Clock::now() + 5s` rather than `Kernel::get_ms_count() + 5000`.
120
137
*/
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`.")
121
139
booltrylock_until(uint64_t millisec);
122
140
141
+
/** Try to lock the mutex until specified time
142
+
@param abs_time absolute timeout time, referenced to Kernel::get_ms_count()
143
+
@return true if the mutex was acquired, false otherwise.
144
+
@note the underlying RTOS may have a limit to the maximum wait time
145
+
due to internal 32-bit computations, but this is guaranteed to work if the
146
+
wait is <= 0x7fffffff milliseconds (~24 days). If the limit is exceeded,
147
+
the lock attempt will time out earlier than specified.
148
+
149
+
@note You cannot call this function from ISR context.
0 commit comments