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:51:02 +0000 (14:51 -0800)
commit3a5a7d79989cdad38372257ef6399f2d4e47cbec
treec3ef250b2da35617c45e380b216b1510252ceccc
parent9f9f52aec9c41975b3234e1b35fb80bf7b9ef90c
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]