Skip to content

Commit 180bad7

Browse files
committed
Copied sources from fhq-server
1 parent d8b26b9 commit 180bad7

24 files changed

Lines changed: 1535 additions & 0 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
wsjcpp-async-jobs-pool
2+
tmp/*
3+
14
# Prerequisites
25
*.d
36

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: cpp
2+
3+
branches:
4+
only:
5+
- master
6+
7+
dist: bionic
8+
9+
addons:
10+
apt:
11+
packages:
12+
- cmake
13+
- make
14+
- g++
15+
- pkg-config
16+
17+
# Build steps
18+
script:
19+
- ./build_simple.sh
20+
- cd unit-tests.wsjcpp
21+
- ./build_simple.sh
22+
- ./unit-tests

.vscode/settings.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"files.associations": {
3+
"cctype": "cpp",
4+
"clocale": "cpp",
5+
"cmath": "cpp",
6+
"cstdarg": "cpp",
7+
"cstddef": "cpp",
8+
"cstdio": "cpp",
9+
"cstdlib": "cpp",
10+
"ctime": "cpp",
11+
"cwchar": "cpp",
12+
"cwctype": "cpp",
13+
"array": "cpp",
14+
"atomic": "cpp",
15+
"*.tcc": "cpp",
16+
"chrono": "cpp",
17+
"condition_variable": "cpp",
18+
"cstdint": "cpp",
19+
"deque": "cpp",
20+
"unordered_map": "cpp",
21+
"vector": "cpp",
22+
"exception": "cpp",
23+
"algorithm": "cpp",
24+
"functional": "cpp",
25+
"iterator": "cpp",
26+
"map": "cpp",
27+
"memory": "cpp",
28+
"memory_resource": "cpp",
29+
"numeric": "cpp",
30+
"optional": "cpp",
31+
"random": "cpp",
32+
"ratio": "cpp",
33+
"string": "cpp",
34+
"string_view": "cpp",
35+
"system_error": "cpp",
36+
"tuple": "cpp",
37+
"type_traits": "cpp",
38+
"utility": "cpp",
39+
"fstream": "cpp",
40+
"initializer_list": "cpp",
41+
"iosfwd": "cpp",
42+
"iostream": "cpp",
43+
"istream": "cpp",
44+
"limits": "cpp",
45+
"mutex": "cpp",
46+
"new": "cpp",
47+
"ostream": "cpp",
48+
"sstream": "cpp",
49+
"stdexcept": "cpp",
50+
"streambuf": "cpp",
51+
"thread": "cpp",
52+
"typeinfo": "cpp"
53+
}
54+
}

CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(wsjcpp-async-jobs-pool)
4+
5+
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
6+
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-async-jobs-pool_SOURCE_DIR})
9+
10+
# Sources
11+
12+
# include header dirs
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src")
14+
15+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_async_jobs_pool.cpp")
16+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_async_jobs_pool.h")
17+
18+
list (APPEND WSJCPP_SOURCES "src/main.cpp")
19+
20+
include_directories(${WSJCPP_INCLUDE_DIRS})
21+
22+
add_executable (wsjcpp-async-jobs-pool ${WSJCPP_SOURCES})
23+
24+
target_link_libraries(wsjcpp-async-jobs-pool ${WSJCPP_LIBRARIES} )
25+
26+
install(
27+
TARGETS
28+
wsjcpp-async-jobs-pool
29+
RUNTIME DESTINATION
30+
/usr/bin
31+
)

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# wsjcpp-async-jobs-pool
2+
3+
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-async-jobs-pool.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-async-jobs-pool) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-async-jobs-pool.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-async-jobs-pool) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-async-jobs-pool.svg)](https://github.com/wsjcpp/wsjcpp-async-jobs-pool) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-async-jobs-pool.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-async-jobs-pool/network/members)
4+
25
Multithreading jobs pool (asyncron tasks)
6+
7+
8+
9+

build_simple.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ ! -d tmp ]; then
4+
mkdir -p tmp
5+
fi
6+
7+
cd tmp
8+
cmake ..
9+
make

src.wsjcpp/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src.wsjcpp/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Automaticly generated by wsjcpp@v0.0.1
2+
cmake_minimum_required(VERSION 3.0)
3+
4+
add_definitions(-DWSJCPP_VERSION="v0.0.1")
5+
add_definitions(-DWSJCPP_NAME="wsjcpp-levenshtein")
6+
7+
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8+
set(MACOSX TRUE)
9+
endif()
10+
11+
set(CMAKE_CXX_STANDARD 11)
12+
13+
set (WSJCPP_LIBRARIES "")
14+
set (WSJCPP_INCLUDE_DIRS "")
15+
set (WSJCPP_SOURCES "")
16+
17+
# wsjcpp/wsjcpp-core:v0.0.2
18+
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_wsjcpp_core/")
19+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_wsjcpp_core/wsjcpp_core.cpp")
20+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_wsjcpp_core/wsjcpp_core.h")
21+
22+
# required-libraries
23+
list (APPEND WSJCPP_LIBRARIES "-lpthread")
24+
25+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
wsjcpp_version: v0.0.1
2+
cmake_cxx_standard: 11
3+
cmake_minimum_required: 3.0
4+
5+
name: wsjcpp/wsjcpp-core
6+
version: v0.0.3
7+
description: Basic Utils for wsjcpp
8+
issues: https://github.com/wsjcpp/wsjcpp-core/issues
9+
repositories:
10+
- type: main
11+
url: "https://github.com/wsjcpp/wsjcpp-core"
12+
keywords:
13+
- c++
14+
- wsjcpp
15+
16+
authors:
17+
- name: Evgenii Sopov
18+
email: mrseakg@gmail.com
19+
20+
required-libraries:
21+
- pthread
22+
23+
distribution:
24+
- source-file: src/wsjcpp_core.cpp
25+
target-file: wsjcpp_core.cpp
26+
sha1: "04a9e3c6db3c7190c6589514a4b5957dbb4c366d"
27+
type: "source-code"
28+
- source-file: src/wsjcpp_core.h
29+
target-file: wsjcpp_core.h
30+
sha1: "1d76447c6880f43f9afeca89111ec64d3574ccb7"
31+
type: "source-code"
32+
33+
unit-tests:
34+
folder: unit-tests # default
35+
files:
36+
- unit-tests/src/main.cpp
37+
- unit-tests/src/unit_tests.h
38+
- unit-tests/src/unit_tests.cpp

0 commit comments

Comments
 (0)