diff --git a/.gitignore b/.gitignore index 8218998..c23a1cb 100644 --- a/.gitignore +++ b/.gitignore @@ -72,4 +72,17 @@ cmake_install.cmake install_manifest.txt compile_commands.json CTestTestfile.cmake -_deps \ No newline at end of file +_deps + +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7e202e5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "cmake.sourceDirectory": "${workspaceFolder}/Sources/src/Visnode", + "cmake.configureOnOpen": false +} \ No newline at end of file diff --git a/Sources/src/Visnode/prog b/Sources/src/Visnode/prog index c21169f..1831c0e 100755 Binary files a/Sources/src/Visnode/prog and b/Sources/src/Visnode/prog differ diff --git a/Sources/src/Visnode/threadweaver/CMakeLists.txt b/Sources/src/Visnode/threadweaver/CMakeLists.txt index cfbdbf1..d15a8dc 100644 --- a/Sources/src/Visnode/threadweaver/CMakeLists.txt +++ b/Sources/src/Visnode/threadweaver/CMakeLists.txt @@ -1,6 +1,7 @@ set(thredweaver_source_files threadweaver.cpp threadweaver.hpp + debugging.hpp ) MESSAGE(STATUS "building threadweaver") add_library(threadweaver ${thredweaver_source_files}) diff --git a/Sources/src/Visnode/threadweaver/debugging.hpp b/Sources/src/Visnode/threadweaver/debugging.hpp new file mode 100644 index 0000000..01aa14c --- /dev/null +++ b/Sources/src/Visnode/threadweaver/debugging.hpp @@ -0,0 +1,9 @@ +#include +#include + +#define DBGMODE + +#define DBGPRINT(x) do { \ + if (DBGMODE) { std::cerr << x << std::endl; } \ +} while (0) + diff --git a/Sources/src/Visnode/threadweaver/threadweaver.hpp b/Sources/src/Visnode/threadweaver/threadweaver.hpp index c8e2df4..b595d5b 100644 --- a/Sources/src/Visnode/threadweaver/threadweaver.hpp +++ b/Sources/src/Visnode/threadweaver/threadweaver.hpp @@ -1,5 +1,6 @@ #include #include +#include "./debugging.hpp" //main thread manager class Threadweaver{