ofproto-dpif: Use adaptive mutex for stats.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 12 Feb 2014 17:27:11 +0000 (09:27 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 13 Feb 2014 22:05:55 +0000 (14:05 -0800)
commit97ba2d36f659170fc5645c47c928041d5c8f51e8
tree2aea9fef295cfc80c5f643713cdca33bf7ef64ab
parentea6f3f9a49ad9d671fa226dd33a14b7f287c6602
ofproto-dpif: Use adaptive mutex for stats.

Stats critical sections are held for very short time, so it makes
sense to spin on them for a while rather than sleeping immediately.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c