Remove M_LOCK from readme as it is obsolete.

This commit is contained in:
Patrick Pelissier committed 2021-02-13 11:45:16 +01:00
1 parent 0231aad947
commit e2f6b81a03
1 file changed
-20
-20
View File
@@ -6629,26 +6629,6 @@ Unlock the variable mutex of type m\_mutex\_t for exclusive use.
If the variable is not locked, the behavior is undefined.
If the variable is not initialized, the behavior is undefined.
##### M\_LOCK\_DECL(name)
*** Obsolete macros ***
Define the lock 'name'. This shall be called in the global space (reserved for global variables).
##### M\_LOCK(name)
*** Obsolete macros ***
Use the lock 'name': the encapsulation instructions are protected by the lock.
Example:
M_LOCK_DECL(n_lock);
unsigned long n = 0;
void f(void) {
M_LOCK(n_lock) {
n ++;
}
}
#### m\_cond\_t
A type representing a conditional variable, used within a mutex section.