Patrick Pelissier
746bdf144b
Fix warning with CLANG7
2019-01-24 07:44:36 +01:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
7b5ae3c15b
Update API so that the worker_t parameter is given on creating the sync bloc.
...
(API breakage), more RAII like.
2018-07-28 19:09:07 +02:00
Patrick Pelissier
3f5406f1d4
API breakage:
...
worker_sync takes an extra parameter (worker_t) to perform a
wait-on-event instead of a busy waiting, reducing consummer ressources.
worker_init takes an int instead of an unsigned int for the number of workers.
It allows additional extra value -1 to initialize the number of workers to
twice the number of CPU, allowing to overload the CPU with loads and keep
them fully working in some scenario.
2018-04-16 23:57:28 +02:00
Patrick Pelissier
10c947d9d4
Support of monocore cpu
2018-02-23 22:21:20 +01:00
Patrick Pelissier
08a4dfbe4c
Improve coverage
2018-02-05 22:14:14 +01:00
Patrick Pelissier
210e05f7fc
Update copyright to 2018
2018-01-29 20:28:30 +01:00
Patrick Pelissier
9d727589aa
Fix data race reported by thread sanitinizer
2018-01-12 18:58:27 +01:00
Patrick Pelissier
bbb1831c5f
Add missing exit(0)
2017-12-31 11:42:56 +01:00
Patrick Pelissier
2d2ae8b509
Fix wrong name of constants for CLANG
2017-12-30 12:20:20 +01:00
Patrick Pelissier
78cdb263bf
Fix potential data race (?)
2017-12-30 11:40:01 +01:00
Patrick Pelissier
bb867190a4
Improve coverage
2017-12-30 11:39:39 +01:00
Patrick Pelissier
f2344c69ca
Rename worker_block_t into worker_sync_t
...
as it is a synchronization point for workers
not an anonymous block.
2017-12-28 00:03:47 +01:00
Patrick Pelissier
8aa3c86ce9
Add support of C++ for workers.
2017-12-16 20:54:17 +01:00
Patrick Pelissier
4ae6e92631
Do not launch the worker macro test if clang isn't compiled with block
2017-12-16 18:36:27 +01:00
Patrick Pelissier
43f371b32e
Remove warnings.
2017-12-16 18:29:07 +01:00
Patrick Pelissier
48036ace19
Add new test.
2017-12-16 17:51:58 +01:00