diff options
author | Dandan Bi <dandan.bi@intel.com> | 2018-10-12 18:13:19 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2018-10-26 15:08:44 +0800 |
commit | 979b7d802c316722da3f3dee90799728c7aab38f (patch) | |
tree | 3661b38d302750487f16c3dd527e0b54741f7a83 /BaseTools/Source/Python/CommonDataClass/Exceptions.py | |
parent | adb2c050128c62ab96bdec95f648f9a18603b028 (diff) | |
download | edk2-979b7d802c316722da3f3dee90799728c7aab38f.tar.gz edk2-979b7d802c316722da3f3dee90799728c7aab38f.tar.bz2 edk2-979b7d802c316722da3f3dee90799728c7aab38f.zip |
MdeModulePkg/HiiDB: Make sure database update behaviors are atomic
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1235
When update contents in HiiDatabase, like:
1. Add/update/remove package list
2. Add/update string
3. Add/update image
We should make these operations atomic to prevent the
potential issue that the one update operation with
higher TPL may interrupt another.
This commit is to make the HiiDatabase update behaviors
atomic by adding EfiAcquireLock/EfiReleaseLock function.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/Exceptions.py')
0 files changed, 0 insertions, 0 deletions