2009-03-06 02:27:35 +03:00
|
|
|
/*
|
|
|
|
* 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
|
2007-02-24 03:30:19 +03:00
|
|
|
|
2009-03-06 02:27:35 +03:00
|
|
|
#ifdef _KERNEL_MODE
|
|
|
|
// kernel: use the RecursiveLock class
|
2007-02-24 03:30:19 +03:00
|
|
|
|
|
|
|
|
2009-03-06 02:27:35 +03:00
|
|
|
#include "RecursiveLock.h"
|
2007-02-24 03:30:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
namespace UserlandFSUtil {
|
2009-03-06 02:27:35 +03:00
|
|
|
typedef RecursiveLock Locker;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
// userland: use the BLocker class
|
2007-02-24 03:30:19 +03:00
|
|
|
|
2009-03-06 02:27:35 +03:00
|
|
|
#include <Locker.h>
|
|
|
|
|
|
|
|
namespace UserlandFSUtil {
|
|
|
|
typedef BLocker Locker;
|
2007-02-24 03:30:19 +03:00
|
|
|
};
|
|
|
|
|
2009-03-06 02:27:35 +03:00
|
|
|
#endif // kernel/userland
|
2007-02-24 03:30:19 +03:00
|
|
|
|
|
|
|
using UserlandFSUtil::Locker;
|
|
|
|
|
2009-03-06 02:27:35 +03:00
|
|
|
#endif // _USERLAND_FS_LOCKER_H
|