audk/MdeModulePkg
Star Zeng 1a4acc1136 MdeModulePkg DxeCore: Avoid the closed event to be signaled wrongly
Signal a closed event will still invoke the event notification function,
it could only be exposed when no the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED
bit set in PcdDebugPropertyMask.

For example:
  gBS->CreateEvent (
                EVT_NOTIFY_SIGNAL,
                TPL_CALLBACK,
                CallbackFun,
                NULL,
                &Event
                );
  gBS->CloseEvent (Event);
  gBS->SignalEvent (Event);      <- CallbackFun still be invoked

Although the case to signal a closed event is abnormal, the code could
still be enhanced to avoid it.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Thomas Palmer <thomas.palmer@hpe.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19754 6f19259b-4bc3-4df7-8a09-765794883524
2016-01-27 10:15:15 +00:00
..
Application MdeModulePkg/BootManagerMenu: Fix bug that boots to undesired option 2015-12-25 02:45:57 +00:00
Bus MdeModulePkg/PciHostBridgeDxe: Fix GCC build failure. 2016-01-26 05:49:18 +00:00
Core MdeModulePkg DxeCore: Avoid the closed event to be signaled wrongly 2016-01-27 10:15:15 +00:00
Include MdeModulePkg: Add new library class PciHostBridgeLib 2016-01-18 04:49:22 +00:00
Library MdeModulePkg:Modify related files because of rename action 2016-01-19 03:30:57 +00:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg:Restore the HiiValue for string opcode 2016-01-27 02:35:36 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Add new library class PciHostBridgeLib 2016-01-18 04:49:22 +00:00
MdeModulePkg.dsc MdeModulePkg: Add NOOPT target in MdeModulePkg.dsc 2016-01-19 04:05:51 +00:00
MdeModulePkg.uni MdeModulePkg: Fix 'accroding' typos in MdeModulePkg.dec/.uni 2016-01-06 01:13:07 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00