fat-rwlock: New big but fast synchronization primitive.
authorBen Pfaff <blp@nicira.com>
Mon, 13 Jan 2014 19:17:55 +0000 (11:17 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Jan 2014 22:45:10 +0000 (14:45 -0800)
commitb8e6737796494d8f8a05c40f4942e7e16f337931
tree9087d00f9bcdbfa5c6e0d94032bb2964c8b1f5a5
parente9020da2d229a48296d829ac40eb4a374063ae49
fat-rwlock: New big but fast synchronization primitive.

This implements a reader-writer lock that uses a lot of memory (128 to 192
bytes per thread that takes the lock) but avoids cache line bouncing when
taking the read side.  Thus, a fat_rwlock is a good choice for rwlocks
taken frequently by readers.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/automake.mk
lib/fat-rwlock.c [new file with mode: 0644]
lib/fat-rwlock.h [new file with mode: 0644]