/usr/include/urg/Lock.h is in liburg0-dev 0.8.18-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #ifndef QRK_LOCK_H
#define QRK_LOCK_H
/*!
\file
\brief ���b�N�N���X
\author Satofumi KAMIMURA
$Id: Lock.h 1954 2011-07-17 22:08:18Z satofumi $
*/
#include "ConditionVariable.h"
#include <cstddef>
namespace qrk
{
/*!
\brief ���b�N�N���X
*/
class Lock {
friend class ConditionalVariable;
friend bool ConditionVariable::wait(Lock* lock, int timeout);
Lock(const Lock& rhs);
Lock& operator = (const Lock& rhs);
// !!!
//void* operator new (size_t);
//void* operator new[] (size_t);
struct pImpl;
const std::auto_ptr<pImpl> pimpl;
public:
Lock(void);
~Lock(void);
/*!
\brief ���b�N
*/
void lock(void);
/*!
\brief ���b�N
*/
bool tryLock(void);
/*!
\brief �A�����b�N
*/
void unlock(void);
};
}
#endif /* !QRK_LOCK_GUARD_H */
|