mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	* tst-initializers1.c: Show through exit code which test failed. * pthread_rwlock_init.c: Also initialize __shared field. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Split __flags element in rwlock structure into four byte elements. One of them is the new __shared element. * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h [__WORDSIZE=32]: Likewise. [__WORDSIZE=64]: Renamed __pad1 element int rwlock structire to __shared, adjust names of other padding elements. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. * sysdeps/pthread/pthread.h: Adjust rwlock initializers. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Add PSHARED. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define FUTEX_PRIVATE_FLAG. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Change main futex to use private operations if possible. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise.
		
			
				
	
	
		
			17 lines
		
	
	
		
			647 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			647 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include <stddef.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <bits/pthreadtypes.h>
 | 
						|
#include <bits/wordsize.h>
 | 
						|
 | 
						|
--
 | 
						|
 | 
						|
MUTEX		offsetof (pthread_rwlock_t, __data.__lock)
 | 
						|
NR_READERS	offsetof (pthread_rwlock_t, __data.__nr_readers)
 | 
						|
READERS_WAKEUP	offsetof (pthread_rwlock_t, __data.__readers_wakeup)
 | 
						|
WRITERS_WAKEUP	offsetof (pthread_rwlock_t, __data.__writer_wakeup)
 | 
						|
READERS_QUEUED	offsetof (pthread_rwlock_t, __data.__nr_readers_queued)
 | 
						|
WRITERS_QUEUED	offsetof (pthread_rwlock_t, __data.__nr_writers_queued)
 | 
						|
FLAGS		offsetof (pthread_rwlock_t, __data.__flags)
 | 
						|
WRITER		offsetof (pthread_rwlock_t, __data.__writer)
 | 
						|
PSHARED		offsetof (pthread_rwlock_t, __data.__shared)
 |