You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -27,7 +27,8 @@
|
||||
#include "transactionnode.h"
|
||||
#undef TRANSACTIONNODE_DLLEXPORT
|
||||
|
||||
namespace BRM {
|
||||
namespace BRM
|
||||
{
|
||||
|
||||
TransactionNode::TransactionNode(int txn) : txnID(txn), _die(false), _sleeping(false)
|
||||
{
|
||||
@ -39,39 +40,39 @@ TransactionNode::~TransactionNode()
|
||||
|
||||
void TransactionNode::setTxnID(VER_t txn)
|
||||
{
|
||||
txnID = txn;
|
||||
txnID = txn;
|
||||
}
|
||||
|
||||
int TransactionNode::getTxnID() const
|
||||
{
|
||||
return txnID;
|
||||
return txnID;
|
||||
}
|
||||
|
||||
void TransactionNode::sleep(boost::mutex &mutex)
|
||||
void TransactionNode::sleep(boost::mutex& mutex)
|
||||
{
|
||||
_sleeping = true;
|
||||
condVar.wait(mutex);
|
||||
_sleeping = true;
|
||||
condVar.wait(mutex);
|
||||
}
|
||||
|
||||
void TransactionNode::wake()
|
||||
{
|
||||
condVar.notify_one();
|
||||
_sleeping = false;
|
||||
condVar.notify_one();
|
||||
_sleeping = false;
|
||||
}
|
||||
|
||||
void TransactionNode::die()
|
||||
{
|
||||
_die = true;
|
||||
_die = true;
|
||||
}
|
||||
|
||||
bool TransactionNode::dead()
|
||||
{
|
||||
return _die;
|
||||
return _die;
|
||||
}
|
||||
|
||||
bool TransactionNode::sleeping()
|
||||
{
|
||||
return _sleeping;
|
||||
return _sleeping;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user