You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/** @file
|
||||
/** @file
|
||||
* class BRMShmImpl
|
||||
*/
|
||||
|
||||
@ -33,35 +33,45 @@
|
||||
#include <boost/interprocess/shared_memory_object.hpp>
|
||||
#include <boost/interprocess/mapped_region.hpp>
|
||||
|
||||
namespace BRM {
|
||||
namespace BRM
|
||||
{
|
||||
|
||||
class BRMShmImpl
|
||||
{
|
||||
public:
|
||||
BRMShmImpl(unsigned key, off_t size, bool readOnly=false);
|
||||
~BRMShmImpl() { }
|
||||
BRMShmImpl(unsigned key, off_t size, bool readOnly = false);
|
||||
~BRMShmImpl() { }
|
||||
|
||||
inline unsigned key() const { return fKey; }
|
||||
inline off_t size() const { return fSize; }
|
||||
inline bool isReadOnly() const { return fReadOnly; }
|
||||
inline unsigned key() const
|
||||
{
|
||||
return fKey;
|
||||
}
|
||||
inline off_t size() const
|
||||
{
|
||||
return fSize;
|
||||
}
|
||||
inline bool isReadOnly() const
|
||||
{
|
||||
return fReadOnly;
|
||||
}
|
||||
|
||||
void setReadOnly();
|
||||
int grow(unsigned newKey, off_t newSize);
|
||||
int clear(unsigned newKey, off_t newSize);
|
||||
void setReadOnly();
|
||||
int grow(unsigned newKey, off_t newSize);
|
||||
int clear(unsigned newKey, off_t newSize);
|
||||
|
||||
void swap(BRMShmImpl& rhs);
|
||||
void destroy();
|
||||
void swap(BRMShmImpl& rhs);
|
||||
void destroy();
|
||||
|
||||
boost::interprocess::shared_memory_object fShmobj;
|
||||
boost::interprocess::mapped_region fMapreg;
|
||||
boost::interprocess::shared_memory_object fShmobj;
|
||||
boost::interprocess::mapped_region fMapreg;
|
||||
|
||||
private:
|
||||
BRMShmImpl(const BRMShmImpl& rhs);
|
||||
BRMShmImpl& operator=(const BRMShmImpl& rhs);
|
||||
BRMShmImpl(const BRMShmImpl& rhs);
|
||||
BRMShmImpl& operator=(const BRMShmImpl& rhs);
|
||||
|
||||
unsigned fKey;
|
||||
off_t fSize;
|
||||
bool fReadOnly;
|
||||
unsigned fKey;
|
||||
off_t fSize;
|
||||
bool fReadOnly;
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
Reference in New Issue
Block a user