X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fglthread%2Flock.h;h=282a22b660098e02d81b85379e362c8620f9b180;hb=757fcfd1ef1892f1472c0712acdf8a2d4ec774da;hp=391165adf891abadf1671cdc6130f8e3fb31829d;hpb=96ee65902e40c618aa07b6652152ecd5674815f2;p=gnulib.git diff --git a/lib/glthread/lock.h b/lib/glthread/lock.h index 391165adf..282a22b66 100644 --- 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 */ } - gl_waitqueue_t; + gl_carray_waitqueue_t; 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;