1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -36,30 +36,32 @@
#define EXPORT
#endif
namespace BRM {
namespace BRM
{
class RWLockMonitor {
class RWLockMonitor
{
public:
// d = die, ls = lock status, k = key
EXPORT RWLockMonitor(const bool *d, const bool *ls, const uint32_t k);
// d = die, ls = lock status, k = key
EXPORT RWLockMonitor(const bool* d, const bool* ls, const uint32_t k);
EXPORT virtual ~RWLockMonitor();
EXPORT virtual ~RWLockMonitor();
EXPORT void operator()();
EXPORT void operator()();
private:
//Are these defaults okay?
//RWLockMonitor(const RWLockMonitor&rhs);
//RWLockMonitor& operator=(const RWLockMonitor&rhs);
//Are these defaults okay?
//RWLockMonitor(const RWLockMonitor&rhs);
//RWLockMonitor& operator=(const RWLockMonitor&rhs);
/* Some of these vars are only useful once we implement write_lock checking. */
const bool *die;
const bool *lockStatus;
uint32_t key;
boost::shared_ptr<rwlock::RWLock> lock;
/* Some of these vars are only useful once we implement write_lock checking. */
const bool* die;
const bool* lockStatus;
uint32_t key;
boost::shared_ptr<rwlock::RWLock> lock;
struct timespec ts; // 3:30 timer
uint32_t secsBetweenAttempts; // :30
struct timespec ts; // 3:30 timer
uint32_t secsBetweenAttempts; // :30
};
} /* namespace BRM */