public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Creating Event in an EventGroup that has already been signaled
@ 2017-07-20 16:35 Tomas Pilar (tpilar)
  2017-07-20 17:38 ` Andrew Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Pilar (tpilar) @ 2017-07-20 16:35 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

What would be the state of that event post creation. Would it be 
immediately signalled and the notify function queued? Or would the 
EventGroup have to be signaled a second time for this new event to also 
become signaled?

Cheers,
Tom


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Creating Event in an EventGroup that has already been signaled
  2017-07-20 16:35 Creating Event in an EventGroup that has already been signaled Tomas Pilar (tpilar)
@ 2017-07-20 17:38 ` Andrew Fish
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2017-07-20 17:38 UTC (permalink / raw)
  To: Tomas Pilar (tpilar); +Cc: edk2-devel@lists.01.org


> On Jul 20, 2017, at 9:35 AM, Tomas Pilar (tpilar) <tpilar@solarflare.com> wrote:
> 
> What would be the state of that event post creation. Would it be immediately signalled and the notify function queued? Or would the EventGroup have to be signaled a second time for this new event to also become signaled?
> 

Tom,

Signaling an event inserts that event into a queue based on TPL. For GUIDed events the list of events is walked and any event that matches the GUID of the event group gets placed in the queue. 

https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Event/Event.c#L258 <https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Event/Event.c#L258>

The event is later dequeued and signaled. 

https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Event/Event.c#L165 <https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Event/Event.c#L165>

So basically you only signal the events that exists, including the event created to signal the event group. 

Thanks,

Andrew Fish


> Cheers,
> Tom
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-20 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20 16:35 Creating Event in an EventGroup that has already been signaled Tomas Pilar (tpilar)
2017-07-20 17:38 ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox