mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
build fix
This commit is contained in:
parent
c0c9590904
commit
4e4b27b6ab
1 changed files with 0 additions and 1 deletions
|
@ -36,7 +36,6 @@ public:
|
||||||
{
|
{
|
||||||
const uint16_t myTicket = __sync_fetch_and_add(&(const_cast<Mutex *>(this)->nextTicket),1);
|
const uint16_t myTicket = __sync_fetch_and_add(&(const_cast<Mutex *>(this)->nextTicket),1);
|
||||||
while (nowServing != myTicket) {
|
while (nowServing != myTicket) {
|
||||||
pthread_yield_np();
|
|
||||||
__asm__ __volatile__("rep;nop"::);
|
__asm__ __volatile__("rep;nop"::);
|
||||||
__asm__ __volatile__("":::"memory");
|
__asm__ __volatile__("":::"memory");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue