Remove M_LOCK from readme as it is obsolete.
This commit is contained in:
1 parent
0231aad947
commit
e2f6b81a03
1 file changed
-20
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user