implement mutex
This commit is contained in:
		@@ -16,3 +16,17 @@ interface::XFMutex * interface::XFMutex::create()
 | 
			
		||||
// TODO: Implement code for XFMutex class
 | 
			
		||||
 | 
			
		||||
#endif // USE_XF_IDF_QT_MUTEX_CLASS
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void XFMutex::lock() {
 | 
			
		||||
    mutex_.lock();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void XFMutex::unlock() {
 | 
			
		||||
    mutex_.unlock();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool XFMutex::tryLock(int32_t timeout) {
 | 
			
		||||
    mutex_.tryLock(timeout);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user