/usr/include/bobcat/sharedblock is in libbobcat-dev 3.23.01-1.
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 | #ifndef INCLUDED_BOBCAT_SHAREDBLOCK_
#define INCLUDED_BOBCAT_SHAREDBLOCK_
#include <bobcat/sharedmutex>
namespace FBB
{
class SharedBlock
{
SharedMutex d_mutex;
int d_id = -1;
public:
int id() const;
void lock();
void setID(int id);
void unlock();
};
inline int SharedBlock::id() const
{
return d_id;
}
inline void SharedBlock::setID(int id)
{
d_id = id;
}
inline void SharedBlock::lock()
{
d_mutex.lock();
}
inline void SharedBlock::unlock()
{
d_mutex.unlock();
}
} // FBB
#endif
|