mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	thread_win32.h: rb_thread_lock_t for USE_WIN32_MUTEX
* thread_win32.h (rb_thread_lock_t): make a union for USE_WIN32_MUTEX. this internal is used only in thread_win32.c, but has to be complete to define rb_thread_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									3c56645634
								
							
						
					
					
						commit
						cdeff42cc1
					
				
					 3 changed files with 24 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,12 @@ WINBASEAPI BOOL WINAPI
 | 
			
		|||
TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
 | 
			
		||||
 | 
			
		||||
typedef HANDLE rb_thread_id_t;
 | 
			
		||||
typedef CRITICAL_SECTION rb_thread_lock_t;
 | 
			
		||||
 | 
			
		||||
typedef union rb_thread_lock_union {
 | 
			
		||||
    HANDLE mutex;
 | 
			
		||||
    CRITICAL_SECTION crit;
 | 
			
		||||
} rb_thread_lock_t;
 | 
			
		||||
 | 
			
		||||
typedef struct rb_thread_cond_struct {
 | 
			
		||||
    struct cond_event_entry *next;
 | 
			
		||||
    struct cond_event_entry *prev;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue