aa085ffef9
RecursiveLock in the kernel. * Several adjustments according to UserlandFS header changes. * Re-added reiserfs to image. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29410 a95241bf-73f2-0310-859d-f6bbb57e9c96
34 lines
539 B
C++
34 lines
539 B
C++
/*
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _USERLAND_FS_LOCKER_H
|
|
#define _USERLAND_FS_LOCKER_H
|
|
|
|
#ifdef _KERNEL_MODE
|
|
// kernel: use the RecursiveLock class
|
|
|
|
|
|
#include "RecursiveLock.h"
|
|
|
|
|
|
namespace UserlandFSUtil {
|
|
typedef RecursiveLock Locker;
|
|
};
|
|
|
|
|
|
#else
|
|
// userland: use the BLocker class
|
|
|
|
#include <Locker.h>
|
|
|
|
namespace UserlandFSUtil {
|
|
typedef BLocker Locker;
|
|
};
|
|
|
|
#endif // kernel/userland
|
|
|
|
using UserlandFSUtil::Locker;
|
|
|
|
#endif // _USERLAND_FS_LOCKER_H
|