zenon
|
3c0ce892a9
|
Loop until MAX_ITEMS and not bestSolutionLength
|
2018-06-08 11:35:59 +02:00 |
|
zenon
|
029ce6264f
|
Set initial bestSolution to all INT_MAX and if all INT_MAX set
bestSolutionLength to 17
|
2018-06-08 11:31:31 +02:00 |
|
zenon
|
5398b9dccd
|
Calculate bestSolutionLength correctly
|
2018-06-08 11:21:03 +02:00 |
|
zenon
|
72da8e371b
|
Initialize bestSolution to all -1
|
2018-06-08 11:12:00 +02:00 |
|
zenon
|
051a727caf
|
Write complete solution array to shared memory without any delimiters
|
2018-06-08 11:03:54 +02:00 |
|
zenon
|
065f445c79
|
Change size of shared memory to MAX_SIZE instead of CIRC_BUF_SIZE
|
2018-06-08 10:58:01 +02:00 |
|
zenon
|
8605c6e820
|
getSolution writes head instead of where head is pointing
|
2018-06-08 10:21:33 +02:00 |
|
zenon
|
da416ca283
|
Do unlinking of SEM_WRITE_END in supervisor
|
2018-06-07 18:24:12 +02:00 |
|
zenon
|
84c2dcdd78
|
Modify error messages
|
2018-06-07 17:58:02 +02:00 |
|
zenon
|
8f91b5f974
|
Added cleanup() function
|
2018-06-07 17:46:00 +02:00 |
|
zenon
|
51724a3637
|
Proper closing and unlinking of semaphores and shared memory
|
2018-06-07 17:38:20 +02:00 |
|
zenon
|
3057b4a0d4
|
Add own wait function
|
2018-06-07 17:08:49 +02:00 |
|
zenon
|
8b9d48e4d8
|
Not necessary to modify array of caller function main()
|
2018-06-07 17:00:25 +02:00 |
|
zenon
|
56df02a288
|
Initialize array for new solution to -1
|
2018-06-07 16:58:16 +02:00 |
|
zenon
|
3e34253092
|
Remove initializer of bestSolution array
|
2018-06-07 16:51:12 +02:00 |
|
zenon
|
1fbd1bf2b8
|
Added code for replacing bestSolution so far with new one
|
2018-06-07 16:35:01 +02:00 |
|
Kranklyboy
|
699d1b9ed4
|
Read whole solutions from shared memory
|
2018-06-07 12:31:25 +02:00 |
|
zenon
|
10ec964fec
|
Read and write solution characterwise
|
2018-06-07 10:40:55 +02:00 |
|
zenon
|
93131dc027
|
Cleanup of shared memory and semaphores
|
2018-06-07 10:30:15 +02:00 |
|
zenon
|
160d66c9c4
|
Remove unnecessary isEmpty() function
|
2018-06-07 10:07:47 +02:00 |
|
zenon
|
49357d1173
|
Initial semaphore test
|
2018-06-06 19:22:25 +02:00 |
|
zenon
|
a0785c17bc
|
Boilerplate for semaphores complete
|
2018-05-31 12:22:53 +02:00 |
|
zenon
|
e3095f8ce0
|
Shared memory and semaphore setup
|
2018-05-30 17:18:11 +02:00 |
|
zenon
|
c8a2c3435b
|
Save program name
|
2018-05-21 15:46:34 +02:00 |
|
zenon
|
803888fbd0
|
Boilerplate
|
2018-05-21 15:41:48 +02:00 |
|
zenon
|
5999f4f951
|
Initial commit
|
2018-05-21 14:51:03 +02:00 |
|