test sqlite
This commit is contained in:
parent
36def513b0
commit
329c9209b2
5 changed files with 9 additions and 3 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "server/src/db/sqlite"]
|
||||||
|
path = server/src/db/sqlite
|
||||||
|
url = https://github.com/MallocNull/sqlite-amalgam
|
|
@ -1,9 +1,11 @@
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
project(server)
|
project(server)
|
||||||
|
|
||||||
file(GLOB_RECURSE server_src
|
file(GLOB_RECURSE server_src
|
||||||
"src/*.hpp"
|
"src/*.hpp"
|
||||||
"src/*.cpp"
|
"src/*.cpp"
|
||||||
|
"src/*.c"
|
||||||
|
"src/*.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
1
server/src/db/sqlite
Submodule
1
server/src/db/sqlite
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 24cc3639a7a16f99fb12bbd6b0d0d835b3bfcda1
|
|
@ -15,7 +15,7 @@
|
||||||
#include "sock/scapesock.hpp"
|
#include "sock/scapesock.hpp"
|
||||||
#include "sock/pool.hpp"
|
#include "sock/pool.hpp"
|
||||||
|
|
||||||
class User;
|
class User;
|
||||||
class Test : sosc::Pool<User> {
|
class Test : sosc::Pool<User> {
|
||||||
protected:
|
protected:
|
||||||
void ProcessClient(User* client) override;
|
void ProcessClient(User* client) override;
|
||||||
|
|
|
@ -79,7 +79,7 @@ void Pool<T>::Start() {
|
||||||
this->stacks.push_back(Stack(this));
|
this->stacks.push_back(Stack(this));
|
||||||
this->stacks.back().Start();
|
this->stacks.back().Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->is_running = true;
|
this->is_running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue