From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in2.apple.com (mail-out2.apple.com [17.151.62.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E278A21CE746A for ; Thu, 20 Jul 2017 10:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1500572293; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bRYmNji3hfGSrh4v4JPQfybX5969QzzavedWoXXNfJ8=; b=Sn6uvBS+J1vO9Ev0r5a2fSHbIy/2ZD+1wTxmeG1OlEHp5OjgIcQFBdvXmhVEDsVk 50ugBupjuDxhsAuTjK2f6i3a9MjRwSDaG0i3fGAh3MzAxS/rDHpK5FL5xu5n1dxb 0I8pv6fkTBDV9T8OIA2xGY/v8ixxAD69TYnWYJnAQpcAI7Ue1SDJ621CVfcjaEyn OKjvM/9SFB+6BXVADXRMWtsiq4D4icXl0/NCtb4fdO8MLbCT8o3yAvy4iMM+LqOF uMmA3tDIHPMv5EX0OmlkjrNJvDI3G5QZOsJhjodBEybgRlZ5Sl0u5qa6tFSpH1bG s07ysWm4+Dp68cxmzBGmfw==; Received: from relay27.apple.com (relay27.apple.com [17.171.128.108]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in2.apple.com (Apple Secure Mail Relay) with SMTP id E6.B4.07214.58AE0795; Thu, 20 Jul 2017 10:38:13 -0700 (PDT) X-AuditID: 11973e11-327ff70000001c2e-f0-5970ea85bc2c Received: from ma1-mmpp-sz11.apple.com (ma1-mmpp-sz11.apple.com [17.171.128.33]) by relay27.apple.com (Apple SCV relay) with SMTP id D7.9A.03167.48AE0795; Thu, 20 Jul 2017 10:38:12 -0700 (PDT) MIME-version: 1.0 Received: from [17.234.133.181] by ma1-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OTE00E3JGZMAJ40@ma1-mmpp-sz11.apple.com>; Thu, 20 Jul 2017 10:38:12 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <77454275-17A1-4E65-BA75-8E022171129D@apple.com> Date: Thu, 20 Jul 2017 10:38:09 -0700 In-reply-to: <638485ba-9d86-2954-1ae7-365bf9bc7aaf@solarflare.com> Cc: "edk2-devel@lists.01.org" To: "Tomas Pilar (tpilar)" References: <638485ba-9d86-2954-1ae7-365bf9bc7aaf@solarflare.com> X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsUiuLohR7f1VUGkweovFhZ7Dh1ltui83cXm wOTRPfsfi8fqJz/YApiiuGxSUnMyy1KL9O0SuDJ6dl9gK+iRr2jf0cDUwHhSuouRk0NCwERi 2qLZrF2MXBxCAuuYJD6vOsgKk1j1ey8zROIQo8TMK/9ZQBK8AoISPybfA7OZBcIkfm/YDtYg JPCNUWLf8xgQW1hAXOLdmU3MIDabgLLEivkf2CF6bSR2nLrOClETIvHzzQmwOSwCqhL/l/SD xTkFnCQ2HPjCBjHfXGLGhS9MILaIgJHEzQW/mCF2OUp8Wn6OGeJQWYlbsy+BHSohMIdNYseb HtYJjEKzkNw6C8mtELaWxPdHrUBxDiBbXuLgeVmIsKbEs3uf2CFsbYkn7y6wLmBkW8UolJuY maObmWekl1hQkJOql5yfu4kRFAvT7QR3MB5fZXWIUYCDUYmHl2FdQaQQa2JZcWXuIUZpDhYl cd6nx4FCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGKdv3RKm86370I3SJV/nx653bZ7gU79O ODn9hMWRVecLnGpuMWtYyMsacyzld/+w4L73geM7b63MmM+zO4Sz+5hUwKQJO2Q+8VZ9962W PeTReLXSacvx2v+G7R+WFh9asZHdwdtcZqV77OUrC6W/Sl65w/mvwYcnSKaUSeWF9Jo4yZSn 95PWzVViKc5INNRiLipOBAAsLySjZgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsUiuLpBUbflVUGkwfHJJhZ7Dh1ltui83cXm wOTRPfsfi8fqJz/YApiiuGxSUnMyy1KL9O0SuDJ6dl9gK+iRr2jf0cDUwHhSuouRk0NCwERi 1e+9zF2MXBxCAocYJWZe+c8CkuAVEJT4MfkemM0sECbxe8N2VhBbSOAbo8S+5zEgtrCAuMS7 M5uYQWw2AWWJFfM/sEP02kjsOHWdFaImROLnmxNgc1gEVCX+L+kHi3MKOElsOPCFDWK+ucSM C1+YQGwRASOJmwt+MUPscpT4tPwcM8ShshK3Zl9insDIPwvJebOQnAdha0l8f9QKFOcAsuUl Dp6XhQhrSjy794kdwtaWePLuAusCRrZVjIJFqTmJlUbmeokFBTmpesn5uZsYIcGbs4Pxzk2z Q4wCHIxKPLwbNhVECrEmlhVX5gIDiYNZSYS37yZQiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/e ZUApgfTEktTs1NSC1CKYLBMHp1QDY1lv/cSXq7iUzgdUNE3tLbv1YpGv6L/W/3uXOla/W6bw x+Ne1yMVe1uF69EVn9k41e9MluFZU2Ix+8s86fvVEa82bWk8kvyW8YXJPJfXXfvv7U1dn+Ek sP9awMHTk1xWKe05kmu10PDR714WV92Wo1yt1tMnTYiQfbv8tsbzyJpzxYpyP+orriixFGck GmoxFxUnAgB1vlhBWgIAAA== X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: Creating Event in an EventGroup that has already been signaled X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 17:36:18 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Jul 20, 2017, at 9:35 AM, Tomas Pilar (tpilar) 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 The event is later dequeued and signaled. 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