struct WaitGroupState<K: Kernel> {
signaled_objects: UnsafeList<ObjectBase<K>, ObjectListAdapter<K>>,
unsignaled_objects: UnsafeList<ObjectBase<K>, ObjectListAdapter<K>>,
waiters: RandomAccessForeignList<ObjectWaiter<K>, ObjectWaiterListAdapter<K>>,
}Fields§
§signaled_objects: UnsafeList<ObjectBase<K>, ObjectListAdapter<K>>List of wait group members that have one or more active signals which are waited on by this wait group.
§Safety
- Access to this list must be guarded by the
WaitGroupObjectstate lock. - Elements in this list must be valid
ObjectBaseinstances. - Elements in this list can only be in one list at a time.
- Elements in this list must have their
wait_groupmember set to aWaitGroupMemberof this wait group.
unsignaled_objects: UnsafeList<ObjectBase<K>, ObjectListAdapter<K>>List of wait group members that do not have any active signals which are waited on by this wait group.
§Safety
- Access to this list must be guarded by the
WaitGroupObjectstate lock. - Elements in this list must be valid
ObjectBaseinstances. - Elements in this list can only be in one list at a time.
- Elements in this list must have their
wait_groupmember set to aWaitGroupMemberof this wait group.
waiters: RandomAccessForeignList<ObjectWaiter<K>, ObjectWaiterListAdapter<K>>