Commit Graph

10 Commits

Author SHA1 Message Date
Felix Müller 5b5e8a48f5 changed the weighted compare for RGBA
Changed the Weighted compare for F32

Changed the Weighted compare for Vec

Changed the Weighted compare for Indices

added Indexed Images and functions

Changed Database that it uses Indexed Images

Added tests

Added the rgb_to_lab function

added pixels function
2023-06-17 19:28:34 +02:00
Sven Vogel 57016c1083 Changes:
- implemented `Drop` for thread pool
 - thread pool uses a struct to store a function of specific signature
2023-06-07 13:30:22 +02:00
Felix Müller aed49466ce fixed format in "multithreading" and "lib" 2023-06-06 20:13:07 +02:00
teridax 9bb2fcea52
Merge branch 'main' into multithreading 2023-06-06 18:02:03 +02:00
Sven Vogel 7a6dc389b9 finished documetation for thread pool 2023-06-06 17:56:34 +02:00
Sven Vogel 9be7bc18c7 fixed imports 2023-06-04 23:11:36 +02:00
Sven Vogel 125a3964a7 complete rewrite of `multithreading::ThreadPool` removing:
- The limitation of Atomics
- Multiple Mutexes
And added message passing
2023-06-04 22:31:00 +02:00
teridax 10266dd1bc
Multithreading (#12)
* added multithreading crate with thread pool

* added crate mutlithreading

* replaced `threads` memeber from `Threadpool`
mutex with atomic primitive

* fixed doctest for threadpool

* added module documentation to multithreading

* added functionality to drop thread handles
automatically when threads have finished

* reformatted crate `multithreading` to pass tests

* added benchmark for `threadpool`
using `criterion`.

* finished benchmark for threadpool
and fixed documentation for threadpool

* added unit test to `multithreading`
2023-06-01 20:45:07 +02:00
Sven Vogel e16a38aeef finished benchmark for threadpool
and fixed documentation for threadpool
2023-05-31 17:09:44 +02:00
Sven Vogel c732864a74 added benchmark for `threadpool`
using `criterion`.
2023-05-31 09:00:49 +02:00