Fastlock should yield in ARM

Former-commit-id: 6c65a11b8d841517f372ea9962b8dbc127390943
This commit is contained in:
John Sully 2019-11-28 14:26:43 -05:00
parent 3668715ba3
commit dd5acf2c0d

View File

@ -289,7 +289,9 @@ extern "C" void fastlock_lock(struct fastlock *lock)
break; break;
#if defined(__i386__) || defined(__amd64__) #if defined(__i386__) || defined(__amd64__)
__asm__ ("pause"); __asm__ __volatile__ ("pause");
#elif defined(__arm__)
__asm__ __volatile__ ("yield");
#endif #endif
if ((++cloops % 1024*1024) == 0) if ((++cloops % 1024*1024) == 0)
{ {