You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
clang format apply
This commit is contained in:
@ -47,40 +47,36 @@
|
||||
|
||||
namespace BRM
|
||||
{
|
||||
|
||||
class LBIDResourceGraph
|
||||
{
|
||||
public:
|
||||
typedef std::tr1::unordered_set<ResourceNode*, RNHasher, RNEquals> RNodes_t;
|
||||
|
||||
public:
|
||||
typedef std::tr1::unordered_set<ResourceNode*, RNHasher, RNEquals> RNodes_t;
|
||||
EXPORT LBIDResourceGraph();
|
||||
EXPORT ~LBIDResourceGraph();
|
||||
|
||||
EXPORT LBIDResourceGraph();
|
||||
EXPORT ~LBIDResourceGraph();
|
||||
EXPORT int reserveRange(LBID_t start, LBID_t end, VER_t txn, boost::mutex& mutex);
|
||||
|
||||
EXPORT int reserveRange(LBID_t start, LBID_t end, VER_t txn, boost::mutex& mutex);
|
||||
/// releases all resources held by txn
|
||||
EXPORT void releaseResources(VER_t txn);
|
||||
|
||||
/// releases all resources held by txn
|
||||
EXPORT void releaseResources(VER_t txn);
|
||||
/// releases one resource
|
||||
EXPORT void releaseResource(LBID_t start);
|
||||
|
||||
/// releases one resource
|
||||
EXPORT void releaseResource(LBID_t start);
|
||||
private:
|
||||
uint64_t color;
|
||||
|
||||
private:
|
||||
uint64_t color;
|
||||
LBIDResourceGraph(const LBIDResourceGraph&);
|
||||
LBIDResourceGraph& operator=(const LBIDResourceGraph&);
|
||||
|
||||
LBIDResourceGraph(const LBIDResourceGraph&);
|
||||
LBIDResourceGraph& operator=(const LBIDResourceGraph&);
|
||||
|
||||
void connectResources(LBID_t start, LBID_t end, TransactionNode* txnNode);
|
||||
bool checkDeadlock(TransactionNode&);
|
||||
bool DFSStep(RGNode*, uint64_t, uint64_t) const;
|
||||
|
||||
std::map<VER_t, TransactionNode*> txns;
|
||||
RNodes_t resources;
|
||||
void connectResources(LBID_t start, LBID_t end, TransactionNode* txnNode);
|
||||
bool checkDeadlock(TransactionNode&);
|
||||
bool DFSStep(RGNode*, uint64_t, uint64_t) const;
|
||||
|
||||
std::map<VER_t, TransactionNode*> txns;
|
||||
RNodes_t resources;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace BRM
|
||||
|
||||
#undef EXPORT
|
||||
|
||||
|
Reference in New Issue
Block a user