B
baumann@pan
hi all,
while i am reading the linux codes, i found lot as below
#define __SEMAPHORE_INITIALIZER(name, n) \
{ \
.count = ATOMIC_INIT(n), \
.waking = ATOMIC_INIT(0), \
.wait = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait) \
}
i never see .count, .walking, .wait usage in ms windows 's source code.
is it linux gcc specific? or c99 has defined its usage?
while i am reading the linux codes, i found lot as below
#define __SEMAPHORE_INITIALIZER(name, n) \
{ \
.count = ATOMIC_INIT(n), \
.waking = ATOMIC_INIT(0), \
.wait = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait) \
}
i never see .count, .walking, .wait usage in ms windows 's source code.
is it linux gcc specific? or c99 has defined its usage?