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

@ -21,15 +21,16 @@
#include <map>
#include "messagequeue.h"
namespace messageqcpp {
namespace messageqcpp
{
struct ClientObject
{
MessageQueueClient *client;
MessageQueueClient* client;
uint64_t lastUsed;
bool inUse;
ClientObject() :
client(NULL),
lastUsed(0),
@ -39,18 +40,18 @@ struct ClientObject
class MessageQueueClientPool
{
public:
static MessageQueueClient *getInstance(const std::string &module);
static MessageQueueClient *getInstance(const std::string &ip, uint64_t port);
static void releaseInstance(MessageQueueClient * client);
static void deleteInstance(MessageQueueClient * client);
static MessageQueueClient *findInPool(const std::string &search);
private:
MessageQueueClientPool() { };
~MessageQueueClientPool() { };
static std::multimap<std::string, ClientObject*> clientMap;
public:
static MessageQueueClient* getInstance(const std::string& module);
static MessageQueueClient* getInstance(const std::string& ip, uint64_t port);
static void releaseInstance(MessageQueueClient* client);
static void deleteInstance(MessageQueueClient* client);
static MessageQueueClient* findInPool(const std::string& search);
private:
MessageQueueClientPool() { };
~MessageQueueClientPool() { };
static std::multimap<std::string, ClientObject*> clientMap;
};
}