mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:49:39 +02:00
* fix size of pthread_rwlock_t. Mantis #21552 Fields are now opaque.
git-svn-id: trunk@21243 -
This commit is contained in:
parent
9e03a58c3d
commit
a0becaa727
@ -232,15 +232,16 @@ Type
|
|||||||
|
|
||||||
pthread_key_t = cuint;
|
pthread_key_t = cuint;
|
||||||
|
|
||||||
pthread_rwlock_t = record
|
const
|
||||||
__rw_readers: cint;
|
pthreadrwlocksize = {$ifdef CPU64} 56{$else}32{$endif};
|
||||||
__rw_writer: pointer;
|
|
||||||
__rw_read_waiting: pointer;
|
|
||||||
__rw_write_waiting: pointer;
|
|
||||||
__rw_kind: cint;
|
|
||||||
__rw_pshared: cint;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
type
|
||||||
|
|
||||||
|
pthread_rwlock_t = record // should be 56 for 64-bit, 32 bytes for 32-bit mantis #21552
|
||||||
|
case boolean of
|
||||||
|
false : (_data : array[0..pthreadrwlocksize-1] of char);
|
||||||
|
true : (align : clong);
|
||||||
|
end;
|
||||||
pthread_rwlockattr_t = record
|
pthread_rwlockattr_t = record
|
||||||
__lockkind: cint;
|
__lockkind: cint;
|
||||||
__pshared: cint;
|
__pshared: cint;
|
||||||
|
Loading…
Reference in New Issue
Block a user