mjg 25669dd1d9 Microoptimize locking primitives by avoiding unnecessary atomic ops.
Inline version of primitives do an atomic op and if it fails they fallback to
actual primitives, which immediately retry the atomic op.

The obvious optimisation is to check if the lock is free and only then proceed
to do an atomic op.

Reviewed by:	jhb, vangyzen
2016-06-01 18:32:20 +00:00
..
2016-03-21 21:38:35 +00:00
2015-04-22 14:38:58 +00:00
2016-02-23 23:37:10 +00:00
2015-01-22 11:12:42 +00:00
2015-11-19 05:50:22 +00:00
2016-05-04 13:48:59 +00:00
2016-03-21 21:38:35 +00:00
2016-03-21 21:38:35 +00:00
2016-04-29 22:15:33 +00:00
2015-03-17 14:16:50 +00:00
2016-04-14 17:07:26 +00:00
2016-04-29 21:54:28 +00:00