open_toontown_panda3d/panda
rdb 809f9b04f6 Fix problems with spinlock mutex/cvar implementation
This reimplements the spinlock on top of std::atomic_flag, which is guaranteed to be lockless.  It also inserts the PAUSE (REP NOP) instruction which is strongly recommended to be placed in busy-wait loops by Intel.

This also includes a recursive spinlock implementation.

The spinlock implementation is disabled by default, but can be enabled by adding the --override MUTEX_SPINLOCK=1 flag to makepanda.
2018-09-04 12:58:48 +02:00
..
metalibs general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
src Fix problems with spinlock mutex/cvar implementation 2018-09-04 12:58:48 +02:00