mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
		
			253 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			253 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef SLEEP_H
							 | 
						||
| 
								 | 
							
								#define SLEEP_H
							 | 
						||
| 
								 | 
							
								#include <qthread.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class Sleep : public QThread
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 | 
							
								  static void msleep(int ms) {
							 | 
						||
| 
								 | 
							
								    QThread::msleep(ms);
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  static int idealThreadCount() {
							 | 
						||
| 
								 | 
							
								    return QThread::idealThreadCount();
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif // SLEEP_H
							 |