projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix test-alignof failure.
[gnulib.git]
/
lib
/
glthread
/
lock.h
diff --git
a/lib/glthread/lock.h
b/lib/glthread/lock.h
index
391165a
..
282a22b
100644
(file)
--- a/
lib/glthread/lock.h
+++ b/
lib/glthread/lock.h
@@
-675,13
+675,13
@@
typedef struct
unsigned int alloc; /* length of allocated array */
unsigned int offset; /* index of first waiting thread in array */
}
unsigned int alloc; /* length of allocated array */
unsigned int offset; /* index of first waiting thread in array */
}
- gl_waitqueue_t;
+ gl_
carray_
waitqueue_t;
typedef struct
{
gl_spinlock_t guard; /* protects the initialization */
CRITICAL_SECTION lock; /* protects the remaining fields */
typedef struct
{
gl_spinlock_t guard; /* protects the initialization */
CRITICAL_SECTION lock; /* protects the remaining fields */
- gl_waitqueue_t waiting_readers; /* waiting readers */
- gl_waitqueue_t waiting_writers; /* waiting writers */
+ gl_
carray_
waitqueue_t waiting_readers; /* waiting readers */
+ gl_
carray_
waitqueue_t waiting_writers; /* waiting writers */
int runcount; /* number of readers running, or -1 when a writer runs */
}
gl_rwlock_t;
int runcount; /* number of readers running, or -1 when a writer runs */
}
gl_rwlock_t;