Singleton.hServerConfig.h#ifndef AURORA_SERVERCONFIG_H
#define AURORA_SERVERCONFIG_H
#include "Singleton.h"
#include <string>
#include <map>
namespace aurora
{
class ServerConfig
{
public:
ServerConfig() = default;
~ServerConfig() = default;
...
Singleton.h#ifndef NET_SINGLETON_H
#define NET_SINGLETON_H
template<typename T>
class Singleton
{
public:
static T &instance()
{
static T t;
return t;
}
Singleton() = delete;
~Singleton() = delete;
Singleton(const Singleton &) = delete;
...
class noncopyable
{
public:
const noncopyable &operator=(const noncopyable &) = delete;
noncopyable(const noncopyable &) = delete;
protected:
noncopyable() = default;
~noncopyable() = default;
};
安装插件File->Plugins->Marketplace显示内存指示File->Appearance->Window Opetions->Show memory indicator修改内存大小HELP->Edit Custum VM Options-Xss8m-Xms1024m-Xmx4196m代码格式化修改File->Editor->Code Style控制台乱码HELP->Edit Custum VM Options-Dfile.encoding=UTF-8-Dconsole.encoding=UTF-8文件中文乱码File-...
future.cpp#include <chrono>
#include <iostream>
#include <future>
#include <thread>
std::string call_back(std::string name)
{
std::cout << "call_back run start " << "thread_name: " << name << " thread_id: " <<...
ThreadPool.h// -*- C++ -*-
// Copyright (c) 2012-2015 Jakob Progsch
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to u...
Logger.h#ifndef AURORA_LOGGER_H
#define AURORA_LOGGER_H
#include "Common.h"
#include <log4cplus/logger.h>
#include <string>
namespace aurora
{
class Logger : noncopyable
{
static constexpr int LOG_BUFFER_SIZE = 1024;
public:
static void
...
- « 前一页
- 1
- 2
- 3
- 4
- 5
- 6
- 后一页 »