xref: /haiku/src/add-ons/kernel/file_systems/ramfs/Locking.h (revision 6d244f23b8667c0e4678b16aec1f4e55d44a2e51)
1 /*
2  * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef LOCKING_H
6 #define LOCKING_H
7 
8 #include <util/AutoLock.h>
9 
10 class Volume;
11 
12 // instantiations
13 typedef AutoLocker<Volume, AutoLockerReadLocking<Volume> >	VolumeReadLocker;
14 typedef AutoLocker<Volume, AutoLockerWriteLocking<Volume> >	VolumeWriteLocker;
15 
16 #endif	// LOCKING_H
17