This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ThreadPool : private utils::NonCopyable | |
{ | |
public: | |
explicit ThreadPool(size_t nbThreads = 5) noexcept | |
{ | |
_threads.reserve(nbThreads); | |
for (size_t i = 0; i < nbThreads; ++i) { | |
_threads.emplace_back(&ThreadPool::__threadLoop, this); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options | |
-w Wait at end. | |
-l:N Test level in range of [1, 10]. 10 means maximum testing. | |
-s:N Specify a randomization seed. 0 is default and means use clock. | |
-? Show help. | |
Algorithm | |
List | |
String | |
Vector | |
vector<AutoRefCount>/erase std counts: 0 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find_package(Lua 5.3) | |
##! Lazy lua wrapper | |
add_library(lualib SHARED LuaLib.hpp LuaLib.cpp) | |
##! On a seulement besoin des dépendances LUA dans notre wrapper | |
##! on cache donc l'utilisation des librairies lua avec le mot clef PRIVATE | |
##! En revanche l'api que l'on expose au client elle utilise des features de Core::Utils | |
##! Nous mettons donc cette dépendance en PUBLIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------------------------------- | |
# Generated CMake target import file for configuration "Release". | |
#---------------------------------------------------------------- | |
# Commands may need to know the format version. | |
set(CMAKE_IMPORT_FILE_VERSION 1) | |
if(WIN32) | |
# Import target "cpprestsdk::cpprest" for configuration "Release" | |
set_property(TARGET cpprestsdk::cpprest APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(CMakeFindDependencyMacro) | |
if(ON) | |
find_dependency(ZLIB) | |
endif() | |
if(ON) | |
find_dependency(OpenSSL) | |
endif() | |
if(ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct MyTypeInfo { | |
void *(*convertToBase_)(char *p, const std::type_info& to); | |
void *(*maybeFromHasAPublicChildOfTypeTo_)(char *p, int offset, const std::type_info& from, const std::type_info& to); | |
bool (*isPublicBaseOfYourself)(int offset, const std::type_info& from); | |
void *convertToBase(void *p, const std::type_info& to) const { | |
return convertToBase_(reinterpret_cast<char*>(p), to); | |
} | |
void *maybeFromHasAPublicChildOfTypeTo(void *p, int offset, const std::type_info& from, const std::type_info& to) const { | |
return maybeFromHasAPublicChildOfTypeTo_(reinterpret_cast<char*>(p), offset, from, to); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Project : ArrogantStudio | |
// Authors : Roman Sztergbaum, Berdrigue Bongolo, Cl�ment Doumergue, Valentin Gaillard, Arthur Cros, Dimitri Wyzlic | |
// Filename : ASLoginScene.cpp | |
// Date : 2017/05/09 | |
// Creation Date : 2017/05/09 | |
// School : Epitech | |
// Arrogant Studio, All rights reserved | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Project : ArrogantStudio | |
// Authors : Roman Sztergbaum, Berdrigue Bongolo, Cl�ment Doumergue, Valentin Gaillard, Arthur Cros, Dimitri Wyzlic | |
// Filename : ASGUIManager.hpp | |
// Date : 2017/05/09 | |
// Creation Date : 2017/05/09 | |
// School : Epitech | |
// Arrogant Studio, All rights reserved | |
// |
NewerOlder