Fix engine getting stuck because of optimizations

At -O1+ in both Gcc and Clang, PacketPoolWait would optimize the
wait loop in the wrong way. Adding a compiler barrier to prevent
this optimization issue.
pull/1057/head
Victor Julien 11 years ago
parent c4a8e2cd14
commit c53b428079

@ -151,7 +151,7 @@ void PacketPoolWait(void)
PktPool *my_pool = GetThreadPacketPool();
while(PacketPoolIsEmpty(my_pool))
;
cc_barrier();
}
/** \brief a initialized packet

Loading…
Cancel
Save