mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			RTOS: Mutex: Improve API docs
							parent
							
								
									01c0cfd4f8
								
							
						
					
					
						commit
						0935683187
					
				
							
								
								
									
										13
									
								
								rtos/Mutex.h
								
								
								
								
							
							
						
						
									
										13
									
								
								rtos/Mutex.h
								
								
								
								
							| 
						 | 
				
			
			@ -53,7 +53,12 @@ public:
 | 
			
		|||
 | 
			
		||||
    /** Wait until a Mutex becomes available.
 | 
			
		||||
      @param   millisec  timeout value or 0 in case of no time-out. (default: osWaitForever)
 | 
			
		||||
      @return  status code that indicates the execution status of the function.
 | 
			
		||||
      @return  status code that indicates the execution status of the function:
 | 
			
		||||
               @a osOK the mutex has been obtained.
 | 
			
		||||
               @a osErrorTimeout the mutex could not be obtained in the given time.
 | 
			
		||||
               @a osErrorParameter internal error.
 | 
			
		||||
               @a osErrorResource the mutex could not be obtained when no timeout was specified.
 | 
			
		||||
               @a osErrorISR this function cannot be called from the interrupt service routine.
 | 
			
		||||
     */
 | 
			
		||||
    osStatus lock(uint32_t millisec=osWaitForever);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -63,7 +68,11 @@ public:
 | 
			
		|||
    bool trylock();
 | 
			
		||||
 | 
			
		||||
    /** Unlock the mutex that has previously been locked by the same thread
 | 
			
		||||
      @return  status code that indicates the execution status of the function.
 | 
			
		||||
      @return status code that indicates the execution status of the function:
 | 
			
		||||
              @a osOK the mutex has been released.
 | 
			
		||||
              @a osErrorParameter internal error.
 | 
			
		||||
              @a osErrorResource the mutex was not locked or the current thread wasn't the owner.
 | 
			
		||||
              @a osErrorISR this function cannot be called from the interrupt service routine.
 | 
			
		||||
     */
 | 
			
		||||
    osStatus unlock();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue