Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime threads, CMake, fixed warnings #6

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
25cbc55
Makefile was supported
dorooleg Dec 30, 2017
e563c3d
.gitignore
dorooleg Dec 30, 2017
d2a6b84
QtCreatore ignore
dorooleg Dec 30, 2017
357b469
foreach without template iterator
dorooleg Dec 30, 2017
b9bec13
waitset with dynamic parameters was supported
dorooleg Jan 4, 2018
7475471
sync_var with dynamic parameters was supported
dorooleg Jan 5, 2018
ab19b19
semaphore with dynamic parameters was supported
dorooleg Jan 5, 2018
15edfff
event with dynamic paramters was supported
dorooleg Jan 5, 2018
c12afe1
thread_sync_object with dynamic parameters was supported
dorooleg Jan 5, 2018
79c5bd2
thread, atomic with dynamic paramters was supproted
dorooleg Jan 5, 2018
4696e0b
var with dynamic paramters was supported
dorooleg Jan 5, 2018
0b14c7c
convar, mutex with dynamic paramters was supported
dorooleg Jan 5, 2018
e05a4e9
Scheedulers structure changed
dorooleg Jan 5, 2018
1359e58
scheduler with dynamic thread count was supported
dorooleg Jan 6, 2018
a769b59
random scheduler with dynamic parameters was supported
dorooleg Jan 6, 2018
44519ca
tree search info with dynamic paramters was supported
dorooleg Jan 6, 2018
ac4a9fe
full and bound schedulers with dynamic paramters was supported
dorooleg Jan 6, 2018
b3b843d
local context with dynamic paramters was supported
dorooleg Jan 6, 2018
6cded36
dynamic thread_count was supported
dorooleg Jan 6, 2018
d210365
temporary fix. history memory corruption
dorooleg Jan 6, 2018
7df1d8c
Fix warning: reference cannot be bound to dereferenced null pointer i…
dorooleg Jan 16, 2018
3ed3b30
Fix warning: inline-new-delete
dorooleg Jan 16, 2018
2ce86d0
Makefile system was removed
dorooleg Jan 19, 2018
5cb2a00
CMake for tests was added
dorooleg Jan 20, 2018
56d8d86
CMake build system was supported for example
dorooleg Jan 20, 2018
39a5934
dereference of a null pointer has been fixed
dorooleg Feb 25, 2018
a9f02a1
Merge pull request #15 from dorooleg/rrd-dynamics-parameters
dorooleg Feb 25, 2018
7cd4a71
Merge pull request #14 from dorooleg/explore-non-valid-memory
dorooleg Feb 25, 2018
a61bdbd
Merge pull request #12 from dorooleg/cmake-build-system
dorooleg Feb 25, 2018
3a6685a
Merge branch 'development' into fix_warnings_from_clang_compiler
dorooleg Feb 25, 2018
ecd96cd
Merge pull request #11 from dorooleg/fix_warnings_from_clang_compiler
dorooleg Feb 25, 2018
76e12ce
Warnings have been removed
dorooleg Feb 25, 2018
38550ce
The example with the stack was improved using dynamic parameters
dorooleg Feb 25, 2018
7d0bf0e
Warnings in the tests have been fixed
dorooleg Feb 25, 2018
96f1984
The dynamic number of threads has been removed from the test_suite
dorooleg Feb 26, 2018
f3a5728
Cleanup of unnecessary dynamic parameters in test_suite
dorooleg Mar 10, 2018
9ca72cb
change parameter passing in tests
dorooleg Mar 10, 2018
38b0d0d
Removed static thread count from test suite
dorooleg Mar 11, 2018
e981949
Removed derived parameter from test suite
dorooleg Mar 11, 2018
28cb4b3
Expected result option was removed from test suite
dorooleg Mar 11, 2018
a18d954
Test suite has been removed
dorooleg Mar 11, 2018
2db7244
Merge pull request #18 from dorooleg/remove-test-suite
dorooleg Mar 11, 2018
7c5fb31
Backward compatibility has been supported
dorooleg Apr 3, 2018
d023629
Merge pull request #28 from dorooleg/return-backward-compatibility
dorooleg Apr 3, 2018
16d5727
fix template warning from clang
dorooleg Apr 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
*
!/**/
!*.*

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fortran?
Please let's keep only the stuff that actually in use here.
From object files we need only *.o I think. What is *.gch precompiled headers? Who creates them? Do we create any dylib/dll? Do we build any static libraries at all?

*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# QtCreator
relacy.*

Makefile
*.cmake
CMakeFiles
*.txt
Testing
13 changes: 13 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 2.8.12)

add_subdirectory(cli_ws_deque)
add_subdirectory(condvar)
add_subdirectory(java_ws_deque)
add_subdirectory(mutex_business_logic)
add_subdirectory(peterson)
add_subdirectory(proxy_collector)
add_subdirectory(ref_counting)
add_subdirectory(smr)
add_subdirectory(spsc_queue)
add_subdirectory(ws_deque)
add_subdirectory(stack)
5 changes: 5 additions & 0 deletions example/cli_ws_deque/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 2.8.12)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wall -Wextra")

add_executable(cli_ws_deque cli_ws_deque.cpp stdafx.cpp)
10 changes: 6 additions & 4 deletions example/cli_ws_deque/cli_ws_deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ class ws_deque
};




struct ws_deque_test : rl::test_suite<ws_deque_test, 2>
struct ws_deque_test
{
ws_deque<int> q;
bool state [2];
Expand All @@ -146,6 +144,8 @@ struct ws_deque_test : rl::test_suite<ws_deque_test, 2>
RL_ASSERT(state[1] == false);
}

void invariant() { }

void thread(unsigned index)
{
if (0 == index)
Expand Down Expand Up @@ -190,6 +190,8 @@ struct ws_deque_test : rl::test_suite<ws_deque_test, 2>

int main()
{
rl::simulate<ws_deque_test>();
rl::test_params p;
p.static_thread_count = 2;
rl::simulate<ws_deque_test>(p);
}

20 changes: 0 additions & 20 deletions example/cli_ws_deque/msvc8/cli_ws_deque.sln

This file was deleted.

205 changes: 0 additions & 205 deletions example/cli_ws_deque/msvc8/cli_ws_deque.vcproj

This file was deleted.

5 changes: 5 additions & 0 deletions example/condvar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 2.8.12)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wall -Wextra")

add_executable(condvar condvar.cpp stdafx.cpp)
9 changes: 7 additions & 2 deletions example/condvar/condvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void CondVar::Leave()
}
}

struct CondVarTest : rl::test_suite<CondVarTest, 3>
struct CondVarTest
{
VAR_T(int) stage;
CondVar cv;
Expand All @@ -141,6 +141,9 @@ struct CondVarTest : rl::test_suite<CondVarTest, 3>
VAR(stage) = 0;
}

void after() { }
void invariant() { }

void thread(unsigned index)
{
if (0 == index)
Expand Down Expand Up @@ -176,6 +179,8 @@ struct CondVarTest : rl::test_suite<CondVarTest, 3>

int main()
{
rl::simulate<CondVarTest>();
rl::test_params p;
p.static_thread_count = 3;
rl::simulate<CondVarTest>(p);
}

20 changes: 0 additions & 20 deletions example/condvar/msvc8/condvar.sln

This file was deleted.

Loading