]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseLib/SynchronizationGcc.c
Fix timeout logic in AcquireSpinLock(). It could fail if the end time computed was...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 30 Nov 2007 02:33:37 +0000 (02:33 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 30 Nov 2007 02:33:37 +0000 (02:33 +0000)
commita82da388bfd838ba141d3643689de68e6c48e900
tree794ac24567e59f9cdfcdcb636546c5e6f8dfb509
parent9a6b83a4adae9947d95df22cee8b16ae6ebe024d
Fix timeout logic in AcquireSpinLock().  It could fail if the end time computed was larger than the roll over value of the performance counter.  The timeout logic now accumulates the total time elapsed to determine if the timeout has been exceeded.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4345 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/BaseLib/Synchronization.c
MdePkg/Library/BaseLib/SynchronizationGcc.c
MdePkg/Library/BaseLib/SynchronizationMsc.c