Commit Graph

248 Commits

Author SHA1 Message Date
Kévin Dunglas
22092e7729
indentation 2022-12-19 22:06:56 +01:00
Kévin Dunglas
ca34e53025
use apt-get instead of apt 2022-12-19 21:47:43 +01:00
Kévin Dunglas
4ea14a25f1
install Valgrind 2022-12-19 21:41:43 +01:00
Kévin Dunglas
3f826f040e
add missing checkout action 2022-12-19 21:38:26 +01:00
Kévin Dunglas
78336465c8
ci: switch to GitHub Actions 2022-12-19 21:36:19 +01:00
Mano
b2827e9960 Thread-heavy tests should not parallelize too much 2022-12-01 09:53:17 +00:00
Mano
4f4082e817 Run memleak tests in parallel where possible 2022-12-01 01:19:32 +00:00
Mano
230dd7e643 Increase sleep time to 1.0 again to solve false negatives 2022-12-01 01:13:03 +00:00
Mano
bd7fdc0b69 Re-increase no_work sleep to give time for thpool to be destroyed 2022-12-01 00:34:02 +00:00
Mano
8f1bcb1aa4 Split test_thread_free_multi into 2 separate funcs 2022-12-01 00:26:38 +00:00
Mano
1ff0984eea Reduce memleaks tests time by ~30% 2022-12-01 00:01:08 +00:00
Mano
094a64e3d9 Run tests in parallel 2022-11-30 23:47:27 +00:00
Mano
3853d02bce Increase timeout for tests 2022-11-30 21:54:01 +00:00
Manos
0c6dfd0818
Merge pull request #105 from zlrs/fix/limit_thread_name_lenth_to_16
fix: limit thread name length to 16bytes
2022-11-30 12:31:19 +00:00
Manos
1bbb03ec52
Merge pull request #113 from dunglas/feat/mac-os-compat
feat: compatiblity with Mac OS X
2022-11-30 12:30:03 +00:00
Kévin Dunglas
2ea22f1271
feat: compatiblity with Mac OS X 2022-09-30 22:42:10 +02:00
zlrs
3f46454ca9 fix: limit thread name length to 16bytes 2021-04-29 15:16:58 +08:00
Manos
b259a6e29a
Merge pull request #97 from timgates42/bugfix_typo_success
docs: fix simple typo, successs -> success
2020-12-07 12:58:29 +00:00
Tim Gates
3d8745b98c
docs: fix simple typo, successs -> success
There is a small typo in thpool.h.

Should read `success` rather than `successs`.
2020-12-07 21:51:28 +11:00
Manos
66fae216b7
Merge pull request #94 from nil0x42/patch-1
Use safe snprintf() instead of sprintf()
2020-09-28 00:24:43 +01:00
nil0x42
5fbe481965
Use safe snprintf() instead of sprintf()
The use of sprintf is considered unsafe. And besides being in this case not vulnerable, CI services such as deepcode.ai will send an annoying alert for projects using thpool, as in this example: 47376326b7/_/%2Fsrc%2Fthpool.c/cpp%2Fdc%2FBufferOverflowUnsafeFunction/321/code

The buffer is also bigger than needed: even if `thread_p->id` were to be an uint64_max, the generated string would still fit in 31 bytes (`thread-pool-9223372036854775807`); so buffer was set to 32 bytes instead of 128
2020-09-27 23:06:38 +00:00
Manos S.H
25fa679eca Add info for becoming collaborator 2020-07-21 18:50:34 +01:00
Manos
a7cd78eaf5
Merge pull request #91 from gonzus/gonzus/fix-function-pointer-casts
Fix casting of function pointers
2020-07-21 11:32:35 +01:00
Gonzalo Diethelm
f8e457b3b4
Merge branch 'master' into gonzus/fix-function-pointer-casts 2020-07-21 10:51:40 +02:00
Gonzalo Diethelm
b628c3e93d
Merge pull request #66 from shaunsauve/patch-1
Update example.c
2020-07-21 10:48:48 +02:00
Gonzalo Diethelm
fa3e89f419
Merge pull request #76 from janssen70/cppcheck-fix
Fixed wrong check for malloc result, as found with cppcheck
2020-07-21 10:47:49 +02:00
Manos S.H
b4f1a6494e Make CI faster 2020-07-21 00:54:13 +01:00
Manos S.H
c0f8973cf6 Update badge 2020-07-20 20:39:49 +01:00
Manos S.H
b0d528d7ae Run tests in custom docker container 2020-07-20 20:36:58 +01:00
Manos S.H
3da0ca585e Update circleci config 2020-07-20 19:54:18 +01:00
Manos
6185982d01
Merge pull request #92 from Pithikos/circleci-project-setup
Add .circleci/config.yml
2020-07-20 17:33:03 +01:00
Manos
2a549a6613 Add .circleci/config.yml 2020-07-20 17:31:40 +01:00
Manos
5d07288262
Merge pull request #90 from gonzus/gonzus/clean-up-faq
Cleaned up FAQ doc
2020-07-20 17:25:19 +01:00
Manos
cdcacc8b50
Merge pull request #89 from gonzus/gonzus/clean-up-design
Cleaned up design doc
2020-07-20 17:24:15 +01:00
Gonzalo Diethelm
0012ce22b9 Fix casting of function pointers
Found via -Wpedantic
2020-07-20 18:07:56 +02:00
Gonzalo Diethelm
06d4b0411b Cleaned up FAQ doc 2020-07-20 18:06:32 +02:00
Gonzalo Diethelm
fe540f09b9 Cleaned up design doc 2020-07-20 18:00:26 +02:00
Manos
0e1f9e8f17
Merge pull request #75 from gymbombom/master
thpool.c:458 ~ 464
2020-05-25 14:20:46 +01:00
Manos
73534f92ad
Merge pull request #84 from aneesh-joshi/master
fix typo: `untill` -> `until`
2019-12-16 21:21:09 +00:00
Aneesh Joshi
12656655c7
fix typo: untill -> until 2019-12-16 14:52:37 -05:00
Manos
324ddaaac5
Merge pull request #82 from Rhythmicc/patch-2
Fix warning at line 285.
2019-11-22 10:50:02 +00:00
RhythmLian
71f5bc9613
Fix warning at line 285.
It may can’t catch the malloc error.
2019-11-22 08:23:27 +08:00
Erik Janssen
35a6d7427b Fixed wrong check for malloc result, as found with cppcheck 2018-12-06 21:35:50 +01:00
andamiro
f0d75f72eb thpool.c:458 ~ 464
modify Remark Message
2018-11-30 17:15:58 +09:00
shaun
ebe78873c0
Update example.c
without the wait the 40 tasks will not have time to complete
2017-12-30 01:26:31 -05:00
Manos
430251cb65 Make README less melodramatic 2017-04-24 19:27:54 +01:00
Manos
cfe15cf409 Make README less melodramatic 2017-04-24 19:26:50 +01:00
Manos
2dfd186876 Make README less melodramatic 2017-04-24 19:24:58 +01:00
Manos
2a0e8b7ebb Update README.md 2017-04-18 16:06:02 +01:00
Manos
9632ca028a Update README.md 2017-04-18 16:05:34 +01:00